diff --git a/scipost_django/ontology/context_processors.py b/scipost_django/ontology/context_processors.py
index 93cf1d60a65112ea03bd7ea53100328e4ac254de..4bf67e3c83eb51b9dbaa2b1266513a59610bb051 100644
--- a/scipost_django/ontology/context_processors.py
+++ b/scipost_django/ontology/context_processors.py
@@ -26,7 +26,7 @@ def ontology_processor(request):
     context['session_acad_field_form'] = SessionAcademicFieldForm(initial=initial_acad_field)
     initial_specialty = {}
     # If AcademicField is set, deal with Specialty
-    if context['session_acad_field']:
+    if 'session_acad_field' in context:
         if request.session.get('session_specialty_slug', None):
             try:
                 context['session_specialty'] = Specialty.objects.get(