src/Exchange/ExchangeRegistry.php
public function hasExchange($name, Channel $channel)
    {
        /*
         * @var string
         * @var Exchange
         */
        foreach ($this->exchanges as $exchange) {
            if (true == $exchange->isEqual($name, $channel)) {
                return true;
            }
        }

        return false;
    }
public function hasExchange($name, Channel $channel)
    {
        /*
         * @var string
         * @var Exchange
         */
        foreach ($this->exchanges as $exchange) {
            if (true == $exchange->isEqual($name, $channel)) {
                return true;
            }
        }

        return false;
    }
@param string  $name
@param Channel $channel

@return bool