Remove redundant conditions

Removes the redundant if statement.