Sub-Menu features

Sub-menus comprising only commands hidden by Command Restriction trait will still themselves display on the right click-menu, even though empty. It would be good if there were some way to suppress the menu as well. Perhaps a checkbox/flag on the sub-menu configurator that, when selected, would suppress an empty sub-menu display?

I can also imagine a use for a key command associated with the sub-menu such that a Restrict Command trait could suppress the sub-menu, contents then displaying outside of the sub-menu.