Is the bag a sequential array
e.g. $arr[0], $arr[1], $arr[2]

@return bool
439085
function isSequential()
    {
        $rangeLength = count($this->bag) - 1;

        $range = ($rangeLength >= 0) ? range(0, ($rangeLength >= 0) ? $rangeLength : 0) : [];

        return empty(array_diff(array_keys($this->bag), $range));
    }
574396
public function anArray()
    {
        $message = ['%s is {{not|}} an array', $this->value];
        $this->assert((is_array($this->value)), $message);

        return $this;
    }
685182
public function apriori() : array
    {
        $L = [];
        $L[1] = $this->items();
        $L[1] = $this->frequent($L[1]);

        for ($k = 2; !empty($L[$k - 1]); ++$k) {
            $L[$k] = $this->candidates($L[$k - 1]);
            $L[$k] = $this->frequent($L[$k]);
        }

        return $L;
    }
1151960
public static function isNumericArray($array){
        if (!is_array($array)) { return false; }
        $current = 0;
        foreach (array_keys($array) as $key) {
            if ($key !== $current) { return false; }
            $current++;
        }
        return true;
    }
1032637
public static function isIterator($arr) {
        if (!is_array($arr)) {
            return false;
        }

        foreach (array_keys($arr) as $key) {
            if (!is_numeric($key)) {
                return false;
            }
        }

        return true;
    }
378638
def is_array(type_):
    """"""
    nake_type = remove_alias(type_)
    nake_type = remove_reference(nake_type)
    nake_type = remove_cv(nake_type)
    return isinstance(nake_type, cpptypes.array_t)
89903
protected function isSameItemInBasket()
    {
        $basketContents = $this->getBasket()->getContents();
        foreach ($basketContents as $basketItem) {
            if ($this->isArticleParamsEqual($basketItem)) {
                return true;
            }
        }

        return false;
    }
576456
public function isPrimitiveTypesOrRecursiveArrayOfPrimitiveTypes() {
		if ($this->isPrimitiveType()) {
			return true;
		}
		if ($this->subType) {
			return $this->subType->isPrimitiveTypesOrRecursiveArrayOfPrimitiveTypes();
		}
		return false;
	}
281931
protected function isMultiArray($arr)
    {
        if (!is_array($arr)) {
            return false;
        }

        rsort($arr);

        return isset($arr[0]) && is_array($arr[0]);
    }
1023516
public function getArrayCopy()
    {
        $arrayCopy = [];

        for ($this->rewind(); $this->valid(); $this->next()) {
            $arrayCopy[] = $this->current();
        }

        return $arrayCopy;
    }
414009
public function toArray()
    {
        if (!$this->xml and $this->xml_data) {
            $this->loadXML($this->xml_data);
        }
        if (!$this->xml) {
            return false;
        }
        if (!$this->arreglo) {
            $this->arreglo = $this->xml->toArray();
        }
        return $this->arreglo;
    }
267722
public function toArray()
    {
        $data = [];

        for ($this->rewind(); $this->valid(); $this->next()) {
            $data[] = $this->current();
        }

        return $data;
    }
526948
private function transformToBag($bag): array
    {
        if (is_object($bag)) {
            $bag = get_object_vars($bag);
        }

        $bag = is_array($bag) ? $bag : [$bag];

        $bag = array_map(function ($e) {
            return (is_object($e) || is_array($e)) ? $this->transformToBag($e) : $e;
        }, $bag);

        return $bag;
    }
864179
public function anyFalse()
    {
        if($this->count == 0) return false;
        if (is_array($this->result)) {
            foreach ($this->result as $item) {
                if ($item === false) {
                    return true;
                }
            }
        } else {
            return $this->result == false;
        }
        return false;
    }
1202245
public function allArray() {
        $r=array();
        foreach($this->items as $v) {
            $r=array_merge($r,$v->allError());
            $r=array_merge($r,$v->allWarning());
            $r=array_merge($r,$v->allInfo());
            $r=array_merge($r,$v->allSuccess());
        }
        return $r;
    }
1072913
protected function isNumericallyIndexedArray(array $phpArray): bool
    {
        foreach (array_keys($phpArray) as $key) {
            if (is_numeric($key) === false) {
                return false;
            }
        }
        return true;
    }
579627
public function allFalse()
    {
        if (is_array($this->result)) {
            foreach ($this->result as $item) {
                if ($item === true) {
                    return false;
                }
            }

            return true;
        }

        return $this->result === false;
    }