Add checkUrl function for #87.