when the url is invalid then return false