In addition to Evaluate Formula resolving REPT from left to right, I see that the text argument will return an error, even if number_times = 0. For example, =REPT(A1 A1, 0) returns #NULL!.
My only doubt is, that REPT probably wasn't built to be an IF, the way we're using it, so, it may be...