I was thinking in case \Psr\Log\LoggerInterface is not known, instanceOf would not work... turn out it is not the case...i'm correcting.