Test for each group's existance before trying to use them.

balls