check if doc has a docType in _update_file