Having the test inside the next section of the template doesn't make for very readable code and makes it easy to end up formatting it incorrectly. In the future a different approach should be looked into.