getValue(); if (!empty($value)) { $value = trim($value); $attribute = Mage::getSingleton('eav/config')->getAttribute('catalog_product', $value); if ($attribute->getId() == null) { Mage::throwException('Attribute \'' . $value . ' \'does not exists'); } } $result = parent::_beforeSave(); return $result; } }