simplyfied isOnline