if (cell is not null){ return; // I guess ?}if (cell?.Pages.Count == 0){ SpaceControl!.Root.Children!.Remove(cell);}// ...create a new cell and place at the end of the root collectioncell = new KryptonWorkspaceCell();SpaceControl!.Root.Children!.Add(cell);