private void IfHasAgeGroups(TextWriter writer, HelperOptions options, dynamic context, params object[] args) { if (Person.setting.AgeGroups.Count == 0) return; options.Template(writer, new { AgeGroup = Person.AgeGroup() }); }