public bool IsEmpty() { switch (Count) { case 0: return true; case 1: IElement element = (IElement) this[0]; if (element.Type == Element.CHUNK && ((Chunk) element).IsEmpty()) { return true; } return false; default: return false; } }