Check If Property In Object Exists Javascript