Using _.isFunction for events instead of typeof