public function checkIfComparableGroupAnswersExists(ClientSurvey $client_survey, GetComparativeReportByYear $request, string $locale): array 	{ 		$question_id = ''; 		$extra_filters_selected = 0; 		$question_group_answers_exists = $location_group_answers_exists = $department_group_answers_exists = false;  		$comparative_filter_values = $request->comparative_survey_by_year_filters[$client_survey->getKey()]['comparative_filter_values'] ?? []; 		$questions = Question::whereIn('id', array_keys($comparative_filter_values))->get();  		foreach ($comparative_filter_values as $key => $question) { 			$selected_question_answers = count($comparative_filter_values[$key]);  			$question = $questions->where('id', $key)->first(); 			$question_answers = $question->type == QuestionType::StandardRadio->value ? 4 : $questions->where('id', $key)->first()->getTranslation('available_answers', $locale); 			$question_answers_count = is_array($question_answers) ? count((array) $question_answers) : $question_answers;  			if ($selected_question_answers === $question_answers_count && !$question_group_answers_exists) { 				$question_id = $key; 				$extra_filters_selected = $question_answers; 				$question_group_answers_exists = true; 			} 		}  		// check if all departments are checked 		$client_survey_departments_count = $client_survey->departments->count(); 		$selected_department_filters_count = count($request->comparative_survey_by_year_filters[$client_survey->getKey()]['comparative_departments'] ?? []); 		$department_group_answers_exists = ($client_survey_departments_count > 0) && ($client_survey_departments_count == $selected_department_filters_count) ? true : false;  		// check if all locations are checked 		$client_survey_locations_count = $client_survey->locations->count(); 		$selected_location_filters_count = count($request->comparative_survey_by_year_filters[$client_survey->getKey()]['comparative_locations'] ?? []); 		$location_group_answers_exists = ($selected_location_filters_count > 0) && ($client_survey_locations_count == $selected_location_filters_count) ? true : false;  		return [ 			'question_id' => $question_id, 			'question_group_answers_exists' => ($department_group_answers_exists && $selected_department_filters_count != 2) || ($location_group_answers_exists && $selected_location_filters_count != 2) ? false : $question_group_answers_exists, 			'location_group_answers_exists' => ($question_group_answers_exists && $extra_filters_selected != 2) ? false : $location_group_answers_exists, 			'department_group_answers_exists' => ($question_group_answers_exists && $extra_filters_selected != 2) ? false : $department_group_answers_exists, 		]; 	}