prevent unnecessary array length checking

don't need use length method for each iteration.
Merge pull request #20 from DarkFisk/master

prevent unnecessary array length checking