Explicitly checked for 'undefined' bug

I have gone through almost all the files in core, renderer, scene and dynamicscene..

if (!variable) --> if(typeof variable === 'undefined')
var a = a || b; --> var a = defaultValue(a,b);