Completed SecretURI validity check with clean returns