src/Event/Manager.php
protected function hasHandler(I_Registry $args, $name, $index = null)
    {
        $result = is_null($index) ? !empty($this->handlers[$name]) : true;
        $args->set('hasHandler', $result);

        return $result;
    }
protected function hasHandler(I_Registry $args, $name, $index = null)
    {
        $result = is_null($index) ? !empty($this->handlers[$name]) : true;
        $args->set('hasHandler', $result);

        return $result;
    }
protected function hasHandler ( I_Registry $ args , $ name , $ index = null ) { $ result = is_null ( $ index ) ? ! empty ( $ this -> handlers [ $ name ] ) : true ; $ args -> set ( 'hasHandler' , $ result ) ; return $ result ; }
Sets up 'hasHandler' flag.

@param    I_Registry $args   Call $args->get('hasHandler') to detect result
@param    string     $name   Event name
@param    int        $index  Index in self::$handlers[$name] array or null
if $handler parameter not callback or its part
@return   bool               true to continue, false to interrupt execution
@see      self::hasHandlers()
@internal
Sets up hasHandler flag .