Maybe not more efficient but:

```python
if t == ')' and last_token in ',(':
```