def parse_groups(groups):
    """Parse groups separated by empty element."""
    parsed_groups = []
    cur_group = []
    for person in groups:
        if not person:
            parsed_groups.append(cur_group)
            cur_group = []
        else:
            cur_group.append(person)
    parsed_groups.append(cur_group)
    return parsed_groups