Vérifiez si JSON OBJ existe
if(thisSession.hasOwnProperty('merchant_id')){
}
2 Programmers 1 Bug
if(thisSession.hasOwnProperty('merchant_id')){
}