{#each items as item (item.id)}
{#if item.name} {item.name} {/if} something
{/each}