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