isValid

open fun isValid(): Boolean

Returns whether this BuildingLayers was successfully initialized with valid BuildingInfo and floor data. When false, all public mutating methods (switchFloor, setVisible, setOpacity, deleteFromMap, etc.) are no-ops to prevent NPE crashes on empty floor layer maps.

Return

true if initialization succeeded, false otherwise