i think you can have a more efficient query here by using fog, something like
```ruby
client.flavors.get(flavor_id).try(:name)
```