Simple criteria checking, so you can test a subset of an object's properties.