Check If Array Is Empty In Javascript