code: public function isShopValid($shopId)
      {
          $shops = $this->getContainer()->getParameter('ongr_connections.shops');
          foreach ($shops as $meta) {
              if ($meta['shop_id'] === $shopId) {
                  return true;
              }
          }
  
          return false;
      }
docs: Checks whether shop exists.
  
  @param string $shopId
  
  @return bool