public function canHaveSub(Content $content) { return $content ? $content->getLevel() < $this->getParameter('nyroCms.content.maxlevel') : true; }