(I wanted to point this out even though I'm late to the party)
The original question you were trying to find a 'Not IN' essentially.
It looks like is not supported from the research (2 links below) that I was doing.
So if you wanted to do a 'Not In':
("merchant_id" in x)
true
("merchant_id_NotInObject" in x)
false
I'd recommend just setting that expression == to what you're looking for
if (("merchant_id" in thisSession)==false)
{
// do nothing.
}
else
{
alert("yeah");
}
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in http://www.w3schools.com/jsref/jsref_operators.asp