Remove trailing `if`