Check for `undefined` not `null` Object

Check for `undefined` not `null` object