diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml
index 52fb2ba3..8d57cfb3 100644
--- a/cps/templates/feed.xml
+++ b/cps/templates/feed.xml
@@ -35,7 +35,7 @@
https://github.com/janeczku/calibre-web
- {% if entries[0] %}
+ {% if entries and entries[0] %}
{% for entry in entries %}
{{entry.title}}