Use varargs for contains instead of an array.