If all you are doing is turning the LED off and it is not controlled by any other means, the onTime > 0 and onTime = 0 aren't necessary.
It just avoids turning off a pin that isn't on. I like it, to make it clear that one is aware that the pin is on, and needs to be turned off at the right time.