/** * @param string $attributeName * * @return bool */ public function hasAttribute($attributeName) { $attributeQuery = $this->productQueryContainer->queryAttributeByName($attributeName); return $attributeQuery->count() > 0; }