If both parameters are given as 0, then the range variable would be 0. And the if statement specifies that the range should be greater than 0 and smaller than the `this.children.lengh`. We could however add a condition to check if the `end` is bigger than the `begin`. but this is just making the too many checks, to avoid users who don't know what they are doing :p