Doc#hasPending instead of Doc#whenNothingPending