Just write and use a find wrapper like these:

It was just an example.
If we start considering solving it via wrappers/helpers, then I would just create something like findOr(key, value) function.

But, anyway, it seems that the idea is not worth it...
Thanks for the feedback.

--
Dmitry
Sent from gmail