Javascript Check If Array Is Not Empty In Js How Take