Use Rubocop

condition looks wrong. I think there should be `&&`. It is in original code lets consider that cur_domain is nil then it is `false || true` and if it is `""` then it is `true || false` so it cannot be false.