this won't work try `x.hasOwnProperty('y')`
or
http://stackoverflow.com/questions/1894792/determining-if-a-javascript-object-has-a-given-property
or
http://stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-a-property-in-javascript