Search index of an object key in array