Add a check if internet is available