Turn off notifications when no heart rate detected

Hello is there any possible to turn off notifications when no heart rate detected?