return 0 unless defined $proto and not length $proto;