Replaces comparing .length or .size with .sizeIs.