check if group is null
Merge pull request #12 from andrewjpage/master

check if group is null