Added new overloaded method for hasXpath matcher.