check document exists somewhere - as file or record