`if` statement should evaluate to false for undefined

The following discussion from !541 (merged) should be addressed:

Edited by Eric MORAND