You could use the following as well. String always have a value and the deafult value is the empty string.

~~~go
if con.password != "" {
    ...
}
~~~