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