true if an aray has an element, false if no
assert([0, 1, 2].hasElement(2) == true); assert([0, 1, 2].hasElement(4) == false);
See Implementation