check if element exist or not