please use `===` - also I am not quite sure why you check `undefined`?