Fix domain existence detection