I recently came across a sentence If I had some annual leave left, I would ... and remembered the rule: After if we use any and its derivatives. I know this is a correct sentence, so why is it correct and why isn't the rule applied here?