{#if $modal.length > 0} {/if} {#each $modal as popup, i (popup.id)} {/each}