SyntaxFix
Write A Post
Hire A Developer
Questions
The simple way to do your test is :
function (data) { if (data) { // check if null, undefined, empty ... // some code here } }