SyntaxFix
Write A Post
Hire A Developer
Questions
You can just:
if(variable||variable===0){ //Yes it is set //do something } else { //No it is not set //Or its null //do something else }