Design a function in Python to find an element in a given list.
[3, 2, 4, 5, 6, 7], 4
def findElement(arr, element):
    for i in range(0, len(arr)):
        if arr[i] == element:
            return True
    return False