Is there any chance we could get an Image.getLayer function?

I'd like to be able to check the current state of some fields (like gmonly), but I don't think it's currently possible.