SyntaxFix
Write A Post
Hire A Developer
Questions
You can use typeof, like this:
typeof
if (typeof something != "undefined") { // ... }