As others have already mentioned, using verification typeofyou will get part of the path:
if (typeof objCR == "undefined") {
alert("objCR is undefined");
}
objCR undefined ( , , , , var objCR;) objCR - , , , . , objCR , try/catch :
try {
objCR; // ReferenceError is thrown if objCR is undeclared
} catch (ex) {
alert("objCR has not been declared");
}