use `isFunction`