fix docblock
remove unnecessary else
type hint closure