allout-current-topic-collapsed-p is a compiled Lisp function in `allout.el'.

(allout-current-topic-collapsed-p &optional INCLUDE-SINGLE-LINERS)

True if the currently visible containing topic is already collapsed.

Single line topics intrinsically can be considered as being both
collapsed and uncollapsed. If optional INCLUDE-SINGLE-LINERS is
true, then single-line topics are considered to be collapsed. By
default, they are treated as being uncollapsed.