Remove useless else with throw