def is_y_one_column(y):
    """Returns True if the given array is one dimensional or only has one column"""
    empty = y.size == 0
    too_big = len(y.shape) > 2 or len(y.shape) == 2 and y.shape[1] != 1
    return not (empty or too_big)
