src/Event/Manager.php
public function hasHandlers($name, $handler = null)
    {
        $args = new Args;
        $this->runByHandler($name, $handler, [$this, 'hasHandler'], $args);
        $result = $args->get('hasHandler');

        return $result;
    }
public function hasHandlers($name, $handler = null)
    {
        $args = new Args;
        $this->runByHandler($name, $handler, [$this, 'hasHandler'], $args);
        $result = $args->get('hasHandler');

        return $result;
    }
public function hasHandlers ( $ name , $ handler = null ) { $ args = new Args ; $ this -> runByHandler ( $ name , $ handler , [ $ this , 'hasHandler' ] , $ args ) ; $ result = $ args -> get ( 'hasHandler' ) ; return $ result ; }
Returns true if there are any handlers for specified event.

@param  string $name     Event name
@param  mixed  $handler  Handler or its part criteria
@return bool
Returns true if there are any handlers for specified event .