if you want to use typeof, better use `=== 'function'` since you'll execute it after