Merge "Use sequence directly instead of using len()"