SPlus.Utility.URL.isAvailable (url, function (available){
//TODO: Implement what to do when the URL is available or not
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
}, function (cancelResponse){
//TODO: Implement how to handle a user’s cancel
});