[Feature request] Get layers' actual/rendered visibility (considering z-index and layers above them)

Hey,

It would be great to have a property that indicates if a layer is hidden, meaning that the layer is not reachable and the user can’t visually see it.
Then, when traverse takes place (using the API find methods) it can also be used to only traverse layers that are visually visible.

Today, plugin developers need to detect it with their own algorithm based on z-index and traversing the whole tree. This traverse also affects the performance of their plugin.