code: private function getActive(array $variations, array $mainVariation)
      {
          $checkActiveMainVariation = json_decode($this->configService->get('check_active_main_variation'));
  
          if ($checkActiveMainVariation && !$mainVariation['isActive']) {
              return false;
          }
  
          foreach ($variations as $variation) {
              if ($variation->getActive()) {
                  return true;
              }
          }
  
          return false;
      }
docs: @param Variation[] $variations
  @param array       $mainVariation
  
  @return bool