{% if tree.trail|length <= 1 %}{% for root in tree.roots %}{% if root.on_trail and root.children|length > 1 %} {% endif %}{% endfor %}{% endif %}