diff --git a/layouts/partials/taxonomy/taxonomy-categories.html b/layouts/partials/taxonomy/taxonomy-categories.html
index 4519976..e55ef46 100644
--- a/layouts/partials/taxonomy/taxonomy-categories.html
+++ b/layouts/partials/taxonomy/taxonomy-categories.html
@@ -1,4 +1,4 @@
-{{ if $.Param "enableSidebarCategories" }}
+{{ if and ($.Param "enableSidebarCategories") (ne (len .Site.Taxonomies.categories) 0) }}
diff --git a/layouts/partials/taxonomy/taxonomy-series.html b/layouts/partials/taxonomy/taxonomy-series.html
index e394048..b740a31 100644
--- a/layouts/partials/taxonomy/taxonomy-series.html
+++ b/layouts/partials/taxonomy/taxonomy-series.html
@@ -1,4 +1,4 @@
-{{ if $.Param "enableSidebarSeries" }}
+{{ if and ($.Param "enableSidebarSeries") (ne (len .Site.Taxonomies.series) 0) }}
@@ -22,4 +22,4 @@
{{ end }}
-{{ end }}
\ No newline at end of file
+{{ end }}