small utility for checking internet connection in iOS app.