This could be simplified further to:

    if not request.GET.get(SEARCH_VAR, ''):