LGTM, though you could move the online check to line 630. If already connected there is no need to test if cellular is connected or whether this service is the best service.