Fix reversed if statement

Sorry Clayton :(