public function removePageLink($index = null) {
        if ($index) {
            $return = $this->links->offsetGet($index);
            $this->links->offsetUnset($index);
            return $return;
        } else {
            return $this->links->pop();
        }
    }