len = paths.length

just caches length to a variable