I\'m trying to create my own version of elem function, which returns True or False based on if the element x is inside the given array
elem
True
False