Could you do the opposite in order to be consistent with the rest of the codebase? e.g: if err { return err} and not if not err { return ok }.
In this cae, you could also simple return strconv.ParseBool().