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