/** * Price into indexed is not reliable for composite type. * This method detects this. * * @param string $productTypeId Product type id. * * @return boolean */ private function isOriginalPriceReliable($productTypeId) { return !in_array($productTypeId, $this->productType->getCompositeTypes()); }