only try to display an alert if an alert actually exists

Right now we're calling Alerts.update, even if there is no alert in the data.