protected function removeDeletedFsChildrenFromDb($dbChildren)
    {
        $existingChildren = [];

        // First delete all children that do not exist in fs
        foreach ($dbChildren as $child) {

            if (!$this->filesystem->exists($child->getPath())) {
                $this->nodeRepository->delete($child);
                continue;
            }
            $existingChildren[] = $child;
        }

        return $existingChildren;
    }