Don’t check index bounds explicitly.
Before:
if (i < seq.length) Some(seq(i)) else None
After:
seq.lift(i)