[MOD] XQuery, doc-available: return boolean instead of error