private function isKdybyEventsPresent() { return (bool) $this->compiler->getExtensions('Kdyby\\Events\\DI\\EventsExtension'); }