Refactors ::isIpWhitelisted() to reduce cyclomatic complexity
Adjusts alignment of arrays/assigns