By submenus, I am referring to within the same menu level and may be moot.
In the image below "File" is one level, "Edit" is another level.
So if "File" had submenus in it, the latest code will probably still work and won't get false positives on the submenu; after second thoughts.
Name:  untitled.GIF
Views: 263
Size:  3.6 KB