I think the convention for "private" functions is to prefix with an underscore, e.g. `_isLayerActive` (admittedly, this convention has not always been followed).