diff --git a/templates/01_types.tpl b/templates/01_types.tpl
index 721c11a..edf742f 100644
--- a/templates/01_types.tpl
+++ b/templates/01_types.tpl
@@ -13,7 +13,7 @@ type (
 	// {{$tableNameSingular}}Slice is an alias for a slice of pointers to {{$tableNameSingular}}.
 	// This should generally be used opposed to []{{$tableNameSingular}}.
 	{{$tableNameSingular}}Slice []*{{$tableNameSingular}}
-	{{if eq .NoHooks false -}}
+	{{if not .NoHooks -}}
 	// {{$tableNameSingular}}Hook is the signature for custom {{$tableNameSingular}} hook methods
 	{{$tableNameSingular}}Hook func(boil.Executor, *{{$tableNameSingular}}) error
 	{{- end}}
diff --git a/templates/02_hooks.tpl b/templates/02_hooks.tpl
index e87283f..9815639 100644
--- a/templates/02_hooks.tpl
+++ b/templates/02_hooks.tpl
@@ -1,4 +1,4 @@
-{{- if eq .NoHooks false -}}
+{{- if not .NoHooks -}}
 {{- $tableNameSingular := .Table.Name | singular | titleCase -}}
 {{- $varNameSingular := .Table.Name | singular | camelCase -}}
 var {{$varNameSingular}}BeforeInsertHooks []{{$tableNameSingular}}Hook
diff --git a/templates_test/hooks.tpl b/templates_test/hooks.tpl
index 22dc84c..2cdca44 100644
--- a/templates_test/hooks.tpl
+++ b/templates_test/hooks.tpl
@@ -1,4 +1,4 @@
-{{- if eq .NoHooks false -}}
+{{- if not .NoHooks -}}
 {{- $tableNameSingular := .Table.Name | singular | titleCase -}}
 {{- $tableNamePlural := .Table.Name | plural | titleCase -}}
 {{- $varNamePlural := .Table.Name | plural | camelCase -}}
diff --git a/templates_test/singleton/boil_suites_test.tpl b/templates_test/singleton/boil_suites_test.tpl
index bcb4dd7..8723da4 100644
--- a/templates_test/singleton/boil_suites_test.tpl
+++ b/templates_test/singleton/boil_suites_test.tpl
@@ -105,7 +105,7 @@ func TestCount(t *testing.T) {
   {{- end -}}
 }
 
-{{if eq .NoHooks false -}}
+{{if not .NoHooks -}}
 func TestHooks(t *testing.T) {
   {{- range $index, $table := .Tables}}
   {{- if $table.IsJoinTable -}}