Better check for logger