protected function isAttributeAllowed(Mage_Eav_Model_Entity_Attribute_Abstract $attribute) { if ($attribute instanceof Mage_Catalog_Model_Resource_Eav_Attribute) { if ($attribute->isAllowedForRuleCondition() && $attribute->getDataUsingMethod($this->_isUsedForRuleProperty)) { return true; } } return false; }