When you ask `isDefined` or `isEmpty` of an Option, what you normally want is a `map()`

    @TeamUrl(entry.team).map{ url => 
        <a href="@url" data-link-name="View team">
            @entry.team.name
        </a>
    }.getOrElse(entry.team.name)