check if doc.groups is blank