IsDocumentEntryRef
if (document->IsDocumentEntryRef(ref)) {
bool IsDocumentEntryRef(const entry_ref* ref);