check if doc has been shared before