This line should be outside `if (apnTypeEqualed !== apnAPNEqualed)` scope, right?