Use health > 0.0D instead of isDead()