Remove unnecessary if condition.