This seems to be more complicated than it needs to be. Just show the group if the `host` has one, otherwise skip it.