src/Util/ArrayUtil.php
public static function hasSum(array $numbers, int $target): bool {
        $collection = ArrayUtil::sumCollection($numbers, $target);
        if (null === $collection) return false;
        if (0 === \count($collection)) return false;
        return true;
    }
public static function hasSum(array $numbers, int $target): bool {
        $collection = ArrayUtil::sumCollection($numbers, $target);
        if (null === $collection) return false;
        if (0 === \count($collection)) return false;
        return true;
    }
public static function hasSum ( array $ numbers , int $ target ) : bool { $ collection = ArrayUtil :: sumCollection ( $ numbers , $ target ) ; if ( null === $ collection ) return false ; if ( 0 === \ count ( $ collection ) ) return false ; return true ; }
returns a boolean that indicates whether a sequence sums up to a value or not

@param array $numbers
@param int $target
@return bool
returns a boolean that indicates whether a sequence sums up to a value or not