can you make this  `unless domain`  to satisfy rubycop