Conditions For Total Internal Reflection