This is neat but I would vote for using the one in [jQuery already](http://api.jquery.com/jQuery.isFunction/)