public function parse(array $product)
    {
        $bundleVariations = array_filter($product['variations'], function (array $variation) {
            return $variation['bundleType'] === 'bundle';
        });

        if (empty($bundleVariations)) {
            return [];
        }

        $bundles = [];

        foreach ($bundleVariations as $bundle) {
            if (empty($this->variationHelper->getShopIdentifiers($bundle))) {
                continue;
            }

            $bundles[] = $this->parseBundle($bundle, $product);
        }

        return array_filter($bundles);
    }
public function parse(array $product)
    {
        $bundleVariations = array_filter($product['variations'], function (array $variation) {
            return $variation['bundleType'] === 'bundle';
        });

        if (empty($bundleVariations)) {
            return [];
        }

        $bundles = [];

        foreach ($bundleVariations as $bundle) {
            if (empty($this->variationHelper->getShopIdentifiers($bundle))) {
                continue;
            }

            $bundles[] = $this->parseBundle($bundle, $product);
        }

        return array_filter($bundles);
    }
{@inheritdoc}