src/Zicht/Itertools/lib/Traits/GetterTrait.php
public function get($offset, $default = null)
    {
        if ($this instanceof \Traversable) {
            foreach ($this as $key => $value) {
                if ($key === $offset) {
                    return $value;
                }
            }
        }
        return $default;
    }
public function get($offset, $default = null)
    {
        if ($this instanceof \Traversable) {
            foreach ($this as $key => $value) {
                if ($key === $offset) {
                    return $value;
                }
            }
        }
        return $default;
    }
Returns the value of a key with the same type and value as $OFFSET, or returns
$DEFAULT when it this key does not exist

@param mixed $offset
@param mixed $default
@return mixed