sounds good. i find the first more readable, i'm not familiar with `index` and the required `.nil?` at the end seems complicated