Added missing isFunction