private function priceHasCustomerGroup(Price $price, CustomerGroupReference $customerGroup) { return !is_null($price->getCustomerGroup()) && $price->getCustomerGroup()->getId() == $customerGroup->getId(); }