pipeWireLoader.item might be null and it needs to checked before trying to access pipeWireLoader.item.visible