How To Find If Array Is Empty In Javascript