I think our preferred style in library/provider code would be something like:
```
@key ||= if test
                 value
              else
                other_value
              end