check for empty list of groups