protected function processDeleteCategory(int $categoryId, array $post = []) : bool { if (!$this->isSuperUser()) { if (!$this->can('delete')) { return false; } } return $this->blog->deleteCategory($categoryId, (int) ($post['moveChildrenTo'] ?? 0)); }