Add a checkURL util function

Addressing the comment I made in #70
These parens look superfluous.