javascript check if array of objects includes value