`isEmpty` or `isDefined` on an Option usually means you want to map...

    @TeamUrl(entry.team).map{ url => 
        <a href="@TeamUrl(entry.team)" data-link-name="View team">}
            @entry.team.name
        </a>
    }.getOrElse(entry.team.name)