{#if itinerary && legs && firstLeg && lastLeg} {/if}
{#each legs ?? [] as leg}
{JSON.stringify(leg)}
{/each}