1. var res is unnecessary because it used only once.
2. Should not break when `handled` is set as false?