Check If Array Is Empty In Js