Remove unnecessary if statement.