private function searchMenuLinkUsingID($list, $id)
    {
        foreach ($list as $menuLink){
            if($menuLink['menuLinkID'] == $id) {
                return $menuLink;
            }
        }
        throw new \Exception("Menu link doesn't exit, something is wrong");
    }
private function searchMenuLinkUsingID($list, $id)
    {
        foreach ($list as $menuLink){
            if($menuLink['menuLinkID'] == $id) {
                return $menuLink;
            }
        }
        throw new \Exception("Menu link doesn't exit, something is wrong");
    }
private function searchMenuLinkUsingID ( $ list , $ id ) { foreach ( $ list as $ menuLink ) { if ( $ menuLink [ 'menuLinkID' ] == $ id ) { return $ menuLink ; } } throw new \ Exception ( "Menu link doesn't exit, something is wrong" ) ; }
Search menu link using it's ID.

@param  array|object $list
@param  int          $id
@return mixed
@throws \Exception
Search menu link using it s ID .