protected function checkRootNode()
    {
        $id = (int)Application::getRequest()->get('id');

        $repository = $this->getEntityManager()->getRepository($this->entityName);
        /** @var $node Category */
        if ($node = $repository->find($id)) {
            return $node->getLevel() > 1;
        }

        return false;
    }