In 4.3.2 The Shopt Builtin, The statement below appears twice redundantly.
The return status when listing options is zero if all optnames are enabled, non-zero otherwise. When setting or unsetting options, the return status is zero unless an optname is not a valid shell option.