Help me to write the code like "if my string is a valid URL do smth" Is it possible to write this in a couple strings of code?