code: public function isDebug()
      {
          if (null !== $this->container && $this->container->has('kernel')) {
              return $this->container->get('kernel')->isDebug();
          }
  
          return true;
      }
docs: Is debug.
  
  @return bool