SyntaxFix
Write A Post
Hire A Developer
Questions
typeof will serve the purpose I think
if(typeof foo != "undefined"){}