Removed duplicate isFunction in utils