public static bool ActorPresent(int sno) { if (ObjectCache.ShouldUpdateObjectCollection) ObjectCache.UpdateCacheObjectCollection(); return ObjectCache.Objects.Values.Any(o => o.SNOID == sno); }