Test for each group's existance before trying to use them.
Merge pull request #23 from mitchellrj/doge

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