I prefer not to have this import and check here. It is too low level and too private. I think that we can leave without it.

You can check that handler is not in the list of self.logger.getHandlers()