Create a function in Python to return the maximum value in a given array.
The given array is [4, 5, 9, 1, 0, 5, 7]
def findMaxValue(arr):
    max_value = None
    for element in arr:
        if max_value == None or element > max_value:
            max_value = element
    return max_value