nothing wrong with this code here, but I usually prefer to use `Hash#fetch` in cases like this, like so:

```ruby
(custom_payload && custom_payload.fetch("environment", "production')
```
This will return a default of `production` if the `environment` key doesn't exist in the hash.