Removed irrelevant test for undefined