I think domain can be set to nil or empty string. In this case I'd skip this whole block.