why the `bool` here? Isn't `types` a list of types for the `IN` query?