implicit return of `nil` somewhat worries me.

Also, is it possible that `provider` does not respond to `#api_key`?