What you should do in the first place is making the country names properly to a global array, like that creating the menu is much cleaner in a loop ( Even you didn't have more than two countries which I doubt ). After we've followed good habits it's easy to get the name with the item index in the handler so that no menu_item_getinfo is needed. All the benefits of using indexes for countries included.