Added method to check if elements exists given a xpath