add isNetworkAvailable function in KKAPIBase