treat completely empty categories correctly