generalize searching through an array based on property value (i'll eventually migrate the other instances of this type of search)