public static function installPromotionRewardType($handle, $name, $pkg) { $promotionRewardType = StorePromotionRewardType::getByHandle($handle); if (!is_object($promotionRewardType)) { StorePromotionRewardType::add($handle, $name, $pkg); } }