Removed duplicated isFunction definition.