Remove hasLogger() method. Just check ->logger.