check if the element exists