Change isAvailable to isOnline