Remove unneeded function
Use $.isFunction