I'm writing an HTML parser... I need my program to be able to check if there is an internet conection before it tries to download any html, how do I do this?