don't crash if no categories are present