use backbone isFunction method