PHP notice when 'api_key' does not exists

By requiring the `api_key` node in the configuration, the PHP notice `Undefined index: api_key` is prevented.