The MenusExistForProduct() function defined in the syMenuObj form is provided by Microsoft Dynamics GP so you can easily determine whether any default menu items have been defined for an integrating product.
MenusExistForProduct(Product_ID)
• Product_ID– The ID of the dictionary for which default menu items will be examined.
A boolean. The value true indicates that default menu items exist for the product, while false indicates they do not.