public bool Any(EntityPredicate predicate) { foreach (IEntity entity in _entities) { if (predicate(entity)) return true; } return false; }