Use isEmpty() to check for an empty group.