menuItemVisibility rules functions