support for turning categories invisible when they constain no visible
items.