`({}).hasOwnProperty.call($cookie, key)` is better