make URL setter type checks consistent