more defensive checking for notification