This looks wrong. It will only take into account the last actor that this method was called for. The visibility regarding the previous actors is overwritten by setSneakVisibility.  Instead you should check all actors and if any of them can see the player, hide the indicator.