Add a checkURL util function

Addressing the comment I made in #70