Use #index rather than #find_index to support earlier ruby libs