refactor use of Utils.isConnectedToNetwork(parentActivity)