Use collection methods instead of array offsets.