twig get length of array code example Example: check length of array twig {% if users|length > 10 %} ... {% endif %}