isDefined, isUndefined helpers added

when(“x”).isDefined() and when(“x”).isUndefined() are possible now