public function getMenuEntryForKey($key)
    {
        foreach ($this->menuEntries as $location => $priorities) {
            foreach ($priorities as $priority=> $menuEntries) {
                $result = $this->searchMenuEntryForKey($menuEntries, $key);
            
                if ($result !== false) {
                    return $result;
                }
            }
        }
        
        return false;
    }