def uid_already_processed(db, notification_uid):
    """Check if the notification UID has already been processed."""
    uid = db.document(notification_uid).get()
    if uid.exists:
        return True
    else:
        return False