checks if element exits