I suggest that you also check for both the xxIF and xxIE flags.
The reason is that a module can set the xxIF flag but without the xxIE flag being set, it will not trigger the ISR.
However if ANOTHER module does trigger the ISR, then it is possible to see the xxIF flag set and therefore try to execute the code.
Of course if you always have the xxIE bit set for a module then that is not such a problem.
Personally, for the sake of an extra check, I think this is worth it - a good habit to get in to for those odd situations where you to enable and disable the xxIE bit.
Susan