has_internet function

Check if user has internet