Forgot 'typeof' in check