When Does Total Internal Reflection Happen