Why not just call ```self.close()```? We maintain a list of a all open modals (see ```this.openModals```) and do a standard iteration on that list which is much less expensive than map. Furthermore, this iterates on all modal instances, open or closed.