Add support for checking if device has internet connection