return 0 unless ( defined $value xor defined $_ ) and ( $value eq $_ );