This may damage the enamel
Tin foil will reflect the heat from the oven back into the enamel coating and this may result in the enamel peeling and cracking. To prolong the life of your oven liner please don't use foil to line the oven sides or bottom.
Always disconnect your appliance from the mains before you start examining it!