PopupMenu.isEmpty() only checks for regular menu items, which the application menu doesn't use, so we need a fake implementation.
PopupMenu.isEmpty() only checks for regular menu items, which the application menu doesn't use, so we need a fake implementation.