If you mean to check both null AND undefined, writing '!= null' is confusing. Better go with samdarks suggestion instead.
If you really want to make it explicit, I suggest `typeof(yiiXHR[id]) !== 'undefined' && yiiXHR[id] !== null`