@Override
    public ClickHouseBoolArrayValue update(Collection<?> value) {
        int size = value == null ? 0 : value.size();
        if (size == 0) {
            return resetToNullOrEmpty();
        }

        boolean[] v = new boolean[size];
        int index = 0;
        for (Object o : value) {
            v[index++] = o != null && ((Number) o).byteValue() == (byte) 1;
        }
        return set(v);
    }
Update value of the given object or create a new instance if {@code ref} is
null.

@param ref   object to update, could be null
@param value value
@return same object as {@code ref} or a new instance if it's null
clickhouse-data/src/main/java/com/clickhouse/data/value/array/ClickHouseBoolArrayValue.java