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

        return $result;
    }