make finding matching models easier

Introduce a `utils` module to make it easuer to find if one object or
model exists in an array of objects or models.