This `else` is not needed. Also I would prefer proper indentation and other pep8 related stuff also in templates.