``hasToken`` should return a boolean