js check if array of objects includes value