Change if statement to inline.