[Minor] Rename the function $CUIsInvisible to isCUInvisible