public function prepend(?Node $node): bool {
        if ($node === null) {
            return false;
        }
        $node->setNext($this->getHead());
        $this->setHead($node);
        return true;
    }