diff --git a/templates/gspecies_compose.yml.j2 b/templates/gspecies_compose.yml.j2
index 82bb8ee16f2fc73a2648ba7457aeb60e286c1b06..408c93e792fb394bcffae8c9858e359db72ee959 100644
--- a/templates/gspecies_compose.yml.j2
+++ b/templates/gspecies_compose.yml.j2
@@ -42,7 +42,7 @@ services:
             - ./banner.png:/var/www/html/banner.png:ro
             {% endif %}
             #- /groups/XXX/:/groups/XXX/:ro  # We do this when we have symlinks in src_data pointing to /groups/XXX/...
-            {% if 'picture_path' is defined and 'picture_path' != None %}
+            {% if 'picture_path' is defined and 'picture_path' %}
                 {% if 'png' in picture_path %}
             - ./species.png:/var/www/html/species.png:ro
                 {% endif %}