this is hard to read, should be

```ruby
rate = get_rate(from, to_currency, :date => date)
unless rate
```