human
Write me a Python program to check element of array in Python.
assistant
Here is a Python program to check element of array in Python

import numpy as np

def is_element_of_array(array, element):
    """
    Check element of array in.
    """
    if array is None:
        return False
    if isinstance(array, list):
        return array.index(element) >= 0
    if isinstance(array, np.ndarray):
        return array[element] >= 0
    return False

# Enter the array
array = [1, 2, 3, 4, 5]

# Enter the element
element = 2

# Calling the function
print((is_element_of_array(array, element)))

#Example Output
# True

#Remember to inspect code for bugs.