{if isset($ERRORS)}
    {if count($ERRORS)}
    <div class="alert alert-danger alert-dismissible">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
        <ul>
            {foreach from=$ERRORS item=error}
                <li>{$error}</li>
            {/foreach}
        </ul>
    </div>
    {/if}
{/if}
{if isset($ERRORS) && count($ERRORS)}
    <div class="alert alert-danger alert-dismissible">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
        <ul>
            {foreach from=$ERRORS item=error}
                <li>{$error}</li>
            {/foreach}
        </ul>
    </div>
{/if}
Revert "add check if $ERRORS is set before count()"
Revert "add check if $ERRORS is set before count()"

This reverts commit 3a3360c4492ad1b15cfef7fb88790a263e9f763e.
