Did this intend to say `if self.uid` but not check for `self.gid`?