Addon authors need some layering API

If layers are a thing that must happen can we please get a way for addon authors to tell if the realm is layered like isRealmLayered() and possibly which layer the player is on? Some very helpful addons get broken due to layering.