{% if accordions %}
  {% if not grouped %}
    {% set attributes = attributes.setAttribute('data-fr-group', 'false') %}
  {% endif %}

  <div{{ attributes.addClass('fr-accordions-group') }}>
    {% set accordions = accordions and accordions is not sequence ? [accordions] : accordions %}
    {% for accordion in accordions %}
      {{ accordion }}
    {% endfor %}
  </div>
{% endif %}
