prefix the method receiver with r in a quickie fix for nameclashes.
Check the field length before both type checks.