public function withValidator(mixed $validator): void 	{ 		for ($i = 0; $i < count($this->items); $i++) { 			Validator::make($this->toArray(), [ 				"items.$i.product_id" => ['required', 'uuid', 'distinct', 'exists:products,id', 'bail', new CheckIfProductHasVariants($this->items[$i]['product_id'], $this->items[$i]['variant_id'] ?? null)], 			])->validate(); 		} 	}