return (currentDocument != null);
return (currentDocument != null && currentDocument.effectiveBooleanValue());
	public static boolean isDocumentAvailable(XQueryContext context, String path) throws XPathException {		try {			setDocumentPath(context, path);			return (currentDocument != null);		}		catch (PermissionDeniedException e) {			return false;		}			}	