Actually you’re not considered dead when your heart starts beating. This is why many medical professionals still try to revive those whose hearts have stopped.

Because medicine and science has found that death is not considered when your heart has stopped, but once all brain activity has ceased. Which is why they usually have around six minutes before there is no chance to revive. Because when the heart has stopped, your brain cells are deprived of oxygen and start to die”