// Get all children of the group.
$members = $condition_group->members();
foreach($membersas$member){ // If the child is simply a condition, add it to the new group.
if($member instanceof EntityCondition){ if($member->operator() == 'IS NULL'){ $group->notExists($member->field()); } elseif($member->operator() == 'IS NOT NULL'){ $group->exists($member->field()); } else{