How To Check If Array Is Empty In Js