public function handleApplicantAnswers(ClientSurvey $ppi_survey, ?ClientSurvey $ba_survey, Applicant $applicantPpi, ?Applicant $applicantBa, Collection $cleaned_answers): void 	{ 		$ppi_answers = $cleaned_answers->get('ppi_answers');  		foreach ($ppi_answers as $question_id => $answer_value) { 			$answer_is_array = is_array($answer_value);  			$custom_answer = null;  			if ($answer_is_array) { 				$custom_answer = $this->handleCustomAnswerCheckboxValue($answer_value); 			}  			$applicantPpi->answers()->create([ 				'custom_checkbox_answer' => $custom_answer, 				'client_survey_id' => $ppi_survey->getKey(), 				'question_id' => $question_id, 				'answer_value' => $answer_is_array ? implode(',', $answer_value) : $answer_value, 			]); 		}  		$ba_answers = $cleaned_answers->get('ba_answers');  		if ($ba_answers->isNotEmpty()) { 			foreach ($ba_answers as $question_id => $answer_value) { 				$answer_is_array = is_array($answer_value);  				$custom_answer = null;  				if ($answer_is_array) { 					$custom_answer = $this->handleCustomAnswerCheckboxValue($answer_value); 				}  				$applicantBa->answers()->create([ 					'custom_checkbox_answer' => $custom_answer, 					'client_survey_id' => $ba_survey->getKey(), 					'question_id' => $question_id, 					'answer_value' => $answer_is_array ? implode(',', $answer_value) : $answer_value, 				]); 			} 		} 	}