Returns true if a network connection is available. If not, returns false.
Future<bool> hasConnection();