Fixed to be:

``` ruby
if addr && !addr.empty?
```