Total internal reflection can happen only when light ray passes from denser to rarer medium.
Total Internal reflection happens only when light is travelling from an optically denser medium to an optically rarer medium.
Total internal reflection of a ray of light is possible when the (ic = critical angle, i = angle of incidence)