If you agree to rename the function name, don't forget here. ``isEmptyRepeat``