Change if to one-liner.