Please replace `switch` on a boolean value with `if`, now it looks weird.