#19 checking internet connection before doing any request