Correctly display if a category has children

Fixes #469