When Does Total Internal Reflection Take Place