add check for empty groups
Merge pull request #7 from rackops/gate_groups

add check for empty groups