Maybe I'm missing something, but the first term of the if condition is included in the second one. Why not use the second term only ?