Check for working network connection