Added XPathObject.isEmpty() to determine searching failed or not