Use undocumented handlebars helper unboundIf to only evaluate presence of lmp and gravida/para once instead of with each render.