I have a panel page which contains two variants. The page has been attached to a menu using the panel's menu settings. Each variant has selection rules applied (in this case domain acces selection rules are being applied to variants). There is no default view, so if none of the variants are used, drupal will return a page not found error.

What I want to be able to do is to hide this page's link in the menu if there are no valid variants for this page. That way a user will not be able to click on a menu link only to be informed the page cannot be found. I had hoped Panels would be "smart" enough to realise that there is no valid variants for the page being viewed and automatically hide the menu link. However, it would seem it does not work like this.

I would be curious to know what is the best way of obtaining the desired result?