Use first valid token rather than checking all token types