{#if !posts || posts.length === 0}

Looks like I haven't posted anything yet!

{:else}
{#each posts as post (post.id)} {/each}
{/if}