How to skip elements where value of object is present in array