Tidy range and len conditionals.