create_delta_index: simplify condition always evaluating to true