return 0 unless defined $_ ? $_ eq $value : defined $value ? 0 : 1