there is less known trick how you can avoid it with default value of 
```
  attr_list = x509_name.to_a.find(Array.method(:new) { |a| a.first == attribute}
  attr_list[1]
```