you can always keep a global variable with the name or number of your top layer and use it instead of hard coding.
I guess that if you're asking that, you might have many object that needs to switch to this layer and don't want to change the events every time you change your layer structure.
That's the only issue I see about not having a system variable or way to find it out.
So yeah, I would use a global variable.