Fixed #22738 -- Abstracted boolean field type introspection

`self.connection` to fix build error.