Check if the internet connection is up. This is a fork of sindresorhus/is-online, but with CommonJS support.