/* Determine if a menu is empty. A menu is considered empty if it contains no or only invisible entries.  */
bool menu_is_empty(struct menu *menu)
/* Determine if a menu is empty. A menu is considered empty if it contains no or only invisible entries.  */
bool menu_is_empty(struct menu *menu)
{
	struct menu *child;
	for (child = menu->list; child; child = child->next) {
		if (menu_is_visible(child))
			return(false);
	}
	return(true);
}