How To Know If An Array Is Empty Javascript