I guess I could also do something client side, so if the URLs resolve we record the success in a hidden field. That way this function only acts as a belt and braces backup if Javascript isn't enabled or for some reason client side validation didn't happen.