It's probably nicer to use `param` as the key instead of `matchs.first`:

```ruby
result[param].record(matchs) if matchs.any?
```