``` 
if user_signed_in? && current_user.team.present?
      button_to t(".btn_team"), team_path(current_user.team),
                  { method: :get, class: "btn", type: "button" }
else
      button_to t(".btn_create"), new_team_path,
                  { method: :get, class: "btn", type: "button" }
end
```

```
path = if user_signed_in? && current_user.team.present?
             team_path(current_user.team)
           else
             new_team_path
          end
button_to t(".btn_create"), path, { method: :get, class: "btn", type: "button" }
```