I was trying to be comprehensive about not using '=== undefined'. I've reverted the changes and I'll make a separate PR.