removal of the isOnline method, instead use try/catch (more accurate depiction of internet connectivity.)