An $dialog().ismenuid to check if a certain menu ID is taken by a menu item. This would be used when trying to accomodate dynamic menu item creation/destruction in a dialog.