"if host:" is redundant, since the line above is going to throw an exception if the host is not found.