How To Check Array Is Empty In Javascript What Is A Block