I think that there was a bit of misunderstanding... my original comment was referring to the name of the variable and not to the logic. The implementation looks good to me.