value as $product) { if (! $product instanceof CouponIncoCode) { throw new \DomainException('Value of CouponProductArray must be CouponIncoCode instances.'); } } } }