Simplify undef test

Removes dependency on info op.