code: 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;
      }
docs: @param string  $name
  @param Channel $channel
  
  @return bool