Fixed inverted test for undef.