I would change it to ``{% if data.children is not empty %}`` (which performs the same under the hood). It would be clearer about the purpose of the condition IMO