Layer.isPrimary

Function/Meaning
Whether it is the primary layer
Type
Layer Class Properties
Explanation

Indicates whether it is the primary layer.
The primary layer is a layer that has no parent and is the layer that is displayed at the back.