Check If String Array Is Empty In Javascript