It looks like you split the isIncoming if statement into 2 parts. Do you have specific reason to separate this from the general block below?