Added null check on PAN.