Comparing Dictionary Length in IF Statement in Django Template