public function passes($attribute, $value): bool 	{ 		if ($this->product->availabilityStatus() == $this->product::STATUS_UNAVAILABLE) { 			$this->errorMessage = __('validation.custom.product-unavailable', ['name' => $this->product->determineTranslation(request()->lang, 'name')]);  			return false; 		}  		if ($this->variant_id) { 			$this->errorMessage = __('validation.custom.products-wrong-variant', ['name' => $this->product->determineTranslation(request()->lang, 'name')]);  			return $this->product->variants->firstWhere('id', $this->variant_id) ? true : false; 		}  		$this->errorMessage = __('validation.custom.products-has-variants', ['name' => $this->product->determineTranslation(request()->lang, 'name')]);  		return $this->product->variants->isEmpty(); 	}