Create a Python function that takes an array of numbers and returns true if the array is sorted in increasing order, and false otherwise
def is_sorted(array):
    for i in range(len(array)-1):
        if array[i] > array[i+1]:
            return False
    return True