why not just `typeof x === 'function'`?