Except I changed it to use $.isFunction so it's probably not necessary...