use != null instead of .isOnline()