Changing positioning of the if statement

so it shows whatever content cleaner without unnecessary breaks