updated isFunction check to take ExtendedMethod's into account