check if all documents have been loaded