This is to lower the number of c code we do. If we remove the if we will have nb_dtype * nb len(inp) as number of c_code. If the if, we lower it to: (1 * nb_dtype) + ((nb len(inp) - 1 ))  ~ nb_dtype + nb len(inp)