utils: verify: simplified code

I should stop reading books about functional programming