I would probably just use `val === void 0` here.