Moved arrayContains<T>() to helper file.