Mongo::INDEX_TYPES.include?(f[1]) given the above change to add the array is made.