The clearBookCollections method's goal is to remove all book collections from the document. You can easily implement it as follows:
clearBookCollections(): void { this._bookCollectionsContainer.innerHTML = ""; }
We do not need to make checks here since the DOM node was retrieved and checked in the constructor.