Javascript Check If Array Contains Object Permanence