check if the internet connection or network is up or down