Reduce duplicate code

do not duplicate the array walk, just check in the same for both cases
reduce code suggestion
double check clarification
Merge pull request #135 from joni2back/patch-1

Add comment about (not) Reducing duplicate code