Javascript If Array Contains Object With Magical Properties