You can change this to:
```elixir
unless is_boolean(expr) do
  expr = quote do: unquote(__MODULE__).validate(unquote(expr))
end
```
I have no particular preference.