This could be abstracted away to reduce duplication and create a place to handle cases like this:

```rb
validate_pin(options[:pin], allow_nil: true)
```