Minor fix to if statement

There ended up being two if clauses that did the exact same thing, so
now they're combined.