public bool ContainsNoOrSingleChild(bool recursive) { if (GroupList.Count > 1) { return(false); } if (recursive) { return(GroupList.All(cg => cg.ContainsNoOrSingleChild(recursive))); } return(true); }