public static function installPromotionRuleType($handle, $name, $pkg) { $promotionRuleType = StorePromotionRuleType::getByHandle($handle); if (!is_object($promotionRuleType)) { StorePromotionRuleType::add($handle, $name, $pkg); } }