This is probably easier to read:
```ruby
upstream = details['upstreamConsumer'] if details['upstreamConsumer'].blank?
```