def is_shown(self, request):
        for menuitem in self.menu._registered_menu_items:
            if menuitem.is_shown(request):
                return True
        return False
If there aren't any visible items in the submenu, don't bother to show
dataset/ETHPy150Open torchbox/wagtail/wagtail/contrib/modeladmin/menus.py/GroupMenuItem.is_shown