As i said, i think you should just remove it then because it's dead code and write as: if(data) { do things }