tools.overlay.overlays returns all overlay instances and takes no arguments
added hasOverlay function which tools.overlay