Be more explicit; return empty string when ips is empty or undefined