check token for null