<template name="teamHome">
  {{#header class="channel-header"}}
    <h1>{{currentTeam.name}}</h1>
  {{/header}}
  {{#content class="channel-content"}}
    <p>Welcome to the team page.</p>
  {{/content}}
</template>

<template name="teamHome">
  {{#if currentTeam}}
    {{#header class="channel-header"}}
      <h1>{{currentTeam.name}}</h1>
    {{/header}}
    {{#content class="channel-content"}}
      <p>Welcome to the team page.</p>
    {{/content}}
  {{else}}
    {{> notFound}}
  {{/if}}
</template>

Check for team existence before rendering
Check for team existence before rendering
