Very good question, and I think the answer is yes, which means that the "if" could just as well be deleted because chunksamples is always > 0.