src/Event.php
public static function methodExists($object, $method_name, $only_events = false) {
        if (!$only_events && method_exists($object, $method_name)) {
            return true;
        } else {
            // Check to see if there is an event bound to the method.
            $event_name = self::getEventname([$object, $method_name]);
            return static::hasHandler($event_name);
        }
    }
public static function methodExists($object, $method_name, $only_events = false) {
        if (!$only_events && method_exists($object, $method_name)) {
            return true;
        } else {
            // Check to see if there is an event bound to the method.
            $event_name = self::getEventname([$object, $method_name]);
            return static::hasHandler($event_name);
        }
    }
Checks if a class method exists or there is a replacement event for it.

@param mixed $object An object instance or a class name.
@param string $method_name The method name.
@param bool $only_events Whether or not to only check events.
@return boolean Returns `true` if the method given by method_name has been defined for the given object,
`false` otherwise.
@see http://ca1.php.net/manual/en/function.method-exists.php