find index of an object in an array