Add elementExists and elementsExists methods