for this place one liner looks better to me, but it is up to you `fqdomain = split ? split[1].to_s : ""`