Check If Object Has Key Javascript