Completed move of isConnectedToInternet method to Common class