Jinja If Statement In For Loop