Add the check to isValidUrl()