Correct undef check