public function dropContext()
    {
        $oldContext = false;

        if ($this->context) {
            $oldContext = $this->context;
        }

        $this->context = null;
        $this->dependentContext = [];

        if ($oldContext) {
            $this->dispatcher->dispatch(SiteEvents::EVENT_DROP, new SiteEvent($oldContext));
        }
    }