add option to hide empty menu items, refs #23