jquery check if element exists in table