protected function isInternalIPAllowed($ip) { $allowedIps = array_fill_keys($this->getInternalAllowedIPs(), true); if (!isset($allowedIps[$ip])) { return false; } return true; }