Wraps current expression in an 'if'-statement checking that it is not undefined