`!host || !port` is much shorter but I guess your trying to be more explicit here?