Check if value exists

When a key exists but the respective value is undefined calling

value.hasOwnProperty("value")

produces "TypeError: Cannot call method 'hasOwnProperty' of undefined"