Check if token exists

Closes #47