<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_shown(self, request):
 """ If there aren't any visible items in the submenu, don't bother to show this menu item """

        for menuitem in self.menu._registered_menu_items:
            if menuitem.is_shown(request):
                return True
        return False