Improve condition that determines whether a struct value is a
`time.Duration` type.