private function getCategory($permission) { $categoryList = []; foreach ($permission as $perm) { if (isset(Objects::getTranslationCategory()[$perm])) { $categoryList[$perm] = Objects::getTranslationCategory()[$perm]; } } return $categoryList; }