public function popEntry()
    {
        if (count($this->entries) == 0) {
            throw new IndexError;
        }
        $entry = array_pop($this->entries);
        $this->last_index -= 1;

        return $entry;
    }