Helper method checking internet access