[xml] How to check if an element exists in the xml using xpath?