protected function searchCorrectMenuEntry()
    {
        foreach ($this->menuEntries as $location => $priorities) {
            foreach ($priorities as $priority => $menuEntries) {
                $menuEntry = $this->searchCorrectMenuEntryInArray($menuEntries);
    
                if ($menuEntry !== false) {
                    return $menuEntry;
                }
            }
        }
        
        return false;
    }