Fixed a mistake, added an arrayContains<T>() helper function.