shorter and faster undefined checks (replaced by === void 0)