Is this a safety feature (electric kettle)?

I have an electric kettle similar to this one -

If I fill it nearly to the top, put the lid down, then tip it backwards, water pours out of the bottom. At first I thought this was a fault, that it was leaking where the handle screws in at the top, and that it’s dangerous as the water is very close to the on/off switch. But inside there seems to be a plastic pipe at the back from the base to just below the top.

My question is, is this an overflow - a safety feature? And why have it? The lid seems to be on tight, I can’t imagine water would leak out.

I suspect that it is the device that switches the kettle off when it boils. Steam pressure pushes down on the pipe and actuates a switch.

Thank you! Of course that’s what it is. :smack: