minor optimizations

- simplify isTransition()
- helper logging