public function hasResponder($type)
    {
        if (!is_string($type) || empty($type)) {
            throw new \InvalidArgumentException('The responder type is invalid');
        }

        return isset($this->responders[$type]);
    }
public function hasResponder($type)
    {
        if (!is_string($type) || empty($type)) {
            throw new \InvalidArgumentException('The responder type is invalid');
        }

        return isset($this->responders[$type]);
    }
public function hasResponder ( $ type ) { if ( ! is_string ( $ type ) || empty ( $ type ) ) { throw new \ InvalidArgumentException ( 'The responder type is invalid' ) ; } return isset ( $ this -> responders [ $ type ] ) ; }
Checks if a responder is assigned to the given type.

@param string $type The type of responder
@return bool
@throws \InvalidArgumentException if the responder type is invalid.
Checks if a responder is assigned to the given type .