Optimized typeExists testing with xpath.