Because nunjucks is not an ideal way to write conditional code like this. People know js. Reads much better.