src/Event.php
public static function exists($class, $name)
    {
        $class = ObjectHelper::getClass($class);
        do {
            if (!empty(self::$events[$class][$name])) {
                return true;
            }
        } while (($class = get_parent_class($class)) !== false);

        return false;
    }
public static function exists($class, $name)
    {
        $class = ObjectHelper::getClass($class);
        do {
            if (!empty(self::$events[$class][$name])) {
                return true;
            }
        } while (($class = get_parent_class($class)) !== false);

        return false;
    }
public static function exists ( $ class , $ name ) { $ class = ObjectHelper :: getClass ( $ class ) ; do { if ( ! empty ( self :: $ events [ $ class ] [ $ name ] ) ) { return true ; } } while ( ( $ class = get_parent_class ( $ class ) ) !== false ) ; return false ; }
Exists event.

@param string|object $class the object or the fully qualified class name specifying the class-level event.
@param string $name name of event
@return bool
Exists event .