Javascript Check If Array Contains Object