public bool IsSectionDefined(string name) { EnsurePageCanBeRequestedDirectly("IsSectionDefined"); return PreviousSectionWriters.ContainsKey(name); }