Honestly I think that if the problem is to check if decrypt_reg() will return "" then the check should be just after the call to decrypt_reg to avoid confusion:

```ruby
dec = decrypt_reg(url, data)
next if dec.empty?
```

But yup, the patch here I guess would work too. So, just sharing my opinion in case you would like to reconsider. On the other hand maybe you're applying the patch here because of something I'm forgetting atm, is it the case :?