Fix Typo: Check the first argument for undefined