src/AbstractCollection.php
public function pick(int $position)
    {
        if (isset($this->data[$position])) {
            return $this->data[$position];
        }

        throw new \LengthException('Invalid index position: ' . $position);
    }
public function pick(int $position)
    {
        if (isset($this->data[$position])) {
            return $this->data[$position];
        }

        throw new \LengthException('Invalid index position: ' . $position);
    }
@param int $position

@return mixed
@throws \LengthException