public function matchesAny(\Closure $closure): bool
    {
        if (\count($this->getArray(), \COUNT_NORMAL) === 0) {
            return false;
        }

        foreach ($this->getGenerator() as $key => $value) {
            $value = $closure($value, $key);

            if ($value === true) {
                return true;
            }
        }

        return false;
    }
public function matchesAny(\Closure $closure): bool
    {
        if (\count($this->getArray(), \COUNT_NORMAL) === 0) {
            return false;
        }

        foreach ($this->getGenerator() as $key => $value) {
            $value = $closure($value, $key);

            if ($value === true) {
                return true;
            }
        }

        return false;
    }
public function matchesAny ( \ Closure $ closure ) : bool { if ( \ count ( $ this -> getArray ( ) , \ COUNT_NORMAL ) === 0 ) { return false ; } foreach ( $ this -> getGenerator ( ) as $ key => $ value ) { $ value = $ closure ( $ value , $ key ) ; if ( $ value === true ) { return true ; } } return false ; }
Check if any item in the current array matches a truth test.

@param \Closure $closure

@return bool
Check if any item in the current array matches a truth test .