public function existsExtendsSafe() { $context = $this->startContext(); try { $exists = class_exists($this->className); } catch (Exception $ex) { return $this->exceptionContext($context, $ex); } $this->endContext($context); return $exists; }