def _check_1d_arrays(arrays):
    """Check if all arrays in an list of arrays are 1d casadi array of shape (n, 1)"""
    for a in arrays:
        if not (a.shape[1] == 1):
            return False

    return True