diff --git a/src/views/themes/default/header.ejs b/src/views/themes/default/header.ejs
index 1225fc8..20f948e 100644
--- a/src/views/themes/default/header.ejs
+++ b/src/views/themes/default/header.ejs
@@ -4,7 +4,7 @@
<%= config.branding.title %>
- <% if(config.themeOpts.links) { %>
+ <% if(config.hasOwnProperty("themeOpts") && config.themeOpts.hasOwnProperty("links")) { %>
<% for(const link of config.themeOpts.links) { %>
<%= link.title %>
<% } %>