added support for Document exists requests fix #499