public function hasDuplicateEmailQuestionEntry(ClientSurvey $client_survey, Collection $cleaned_answers, ?string $applicant_email = null): bool 	{ 		$client_survey_email_answers = $client_survey->answers()->with('question')->whereHas('question', function ($query) use ($cleaned_answers) { 			$query->whereIn('id', $cleaned_answers->get('ppi_answers')->keys())->email(); 		})->get()->groupBy('question_id')->map(function ($type) { 			return $type->filter(function ($item) { 				return (bool) $item->answer_value; 			})->pluck('answer_value')->all(); 		})->all();  		foreach ($client_survey_email_answers as $key => $answer_array) { 			if (in_array($cleaned_answers->get('ppi_answers')->get($key), $answer_array)) { 				return true; 			} 		}  		if ($applicant_email) { 			return !cache()->add($applicant_email, true, 30); 		}  		return false; 	}