/** * Checks if attribute group exists * * @param \Magento\Eav\Model\Entity\Attribute\Group $object * @return bool */ public function itemExists($object) { $adapter = $this->_getReadAdapter(); $bind = ['attribute_set_id' => $object->getAttributeSetId(), 'attribute_group_name' => $object->getAttributeGroupName()]; $select = $adapter->select()->from($this->getMainTable())->where('attribute_set_id = :attribute_set_id')->where('attribute_group_name = :attribute_group_name'); return $adapter->fetchRow($select, $bind) > 0; }