Please do:

```ruby
unless host_port.has_key?(host+":"+port)
  blah blah
end
```