Improve if ~ else.