public function hasVariations(ProductInterface $product) { return 0 < count($product->getVariations()); }