/// <summary> /// Return a value indicating if the Verbal has any indirect objects bound to it which match the given predicate function. /// </summary> /// <param name="verbal">The verbal to test.</param> /// <param name="predicate">The predicate to match indirect objects. </param> /// <returns><c>true</c> if the Verbal has any indirect objects bound to it which match the given predicate function; otherwise, <c>false</c>.</returns> public static bool HasIndirectObject(this IInderectObjectTaker verbal, Func <IEntity, bool> predicate) => AnyOrAnyReferredTo(verbal.IndirectObjects, predicate);
/// <summary> /// Return a value indicating if the Verbal has any indirect objects bound to it. /// </summary> /// <param name="verbal">The verbal to test.</param> /// <returns><c>true</c> if the Verbal has any direct objects bound to it; otherwise, <c>false</c>.</returns> public static bool HasIndirectObject(this IInderectObjectTaker verbal) => verbal.IndirectObjects.Any();