Yes, but with the if, besides the optimization, we are checking that if there is a entry at the current time, it is not statically written.
Well it is not that I think that that has a huge chance of happening.
I can totally change it if you insist, I just don't see the disadvantage of it being there.