Add method to check conection to internet