Pastable version of testing truth on a possibly undefined variable