simplify share_type menu visible check