public function checkMatrixAndCalculateCategoriesData(ClientSurvey $client_survey, GetComparativeReportByYear $request, array $matrix, string $locale): array 	{ 		$matrix_data = [];  		$comparable_group_exists = $this->checkIfComparableGroupAnswersExists($client_survey, $request, $locale);  		if ($comparable_group_exists['question_group_answers_exists'] || $comparable_group_exists['location_group_answers_exists'] || $comparable_group_exists['department_group_answers_exists']) { 			$matrix_data = $this->calculateAllDataWithGroupFilters($client_survey, $request, $locale); 		} else { 			$matrix_data = $this->calcualteAllDataWithoutGroupFilter($client_survey, $request, $matrix, $locale); 		}  		return $matrix_data; 	}