Help us a litle bit Pic model?

How bad/good it is if in the INT routine you test the PORTB and if it's just related to the HPWM, it goes out of there ?