Is there no other way than a try/catch to know if the url exists ?