get('allowed_hosts', []); if (!is_array($allowedHosts)) $allowedHosts = explode(',', $allowedHosts); if (empty($allowedHosts)) return $hosts; foreach ($allowedHosts as $host) { $hosts[] = $host; } return $hosts; } }