public object RenderSection(string sectionName, bool required) { if (required && !IsSectionDefined(sectionName) && !ChildPage.IsSectionDefined(sectionName)) { throw new Exception("Required Section {0} is not defined".Fmt(sectionName)); } return(RenderSection(sectionName)); }