This if statement doesn't really need to check if nAngleA exists.

If you decide to leave it then we should be checking if nAngleB down below also exists.