Yet the previous condition returns an empty string which is not a valid hostname. So? Make up our mind and update the doc comment?