public function pop(int $num) : Collection
    {
        $ret = new Collection();
        foreach ($this -> iterator as $item) {
            if (!$num--)
                return $ret;
            $ret[] = unserialize(file_get_contents($item));
            unlink($item);
        }
        $this -> updateIterator();
        return $ret;
    }