var arr = []; if(arr == false){ console.log("arr is empty!"); }else{ console.log("arr is not empty!"); }