check if term exists