/// <summary> /// Return a value indicating if the Verbal has any subjects 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 subjects. </param> /// <returns><c>true</c> if the Verbal has any subjects bound to it which match the given predicate function; otherwise, <c>false</c>.</returns> public static bool HasSubject(this ISubjectTaker verbal, Func <IEntity, bool> predicate) => AnyOrAnyReferredTo(verbal.Subjects, predicate);
/// <summary> /// Return a value indicating if the Verbal has any subjects bound to it. /// </summary> /// <param name="verbal">The verbal to test.</param> /// <returns><c>true</c> if the Verbal has any Subjects bound to it; otherwise, <c>false</c>.</returns> public static bool HasSubject(this ISubjectTaker verbal) => verbal.Subjects.Any();