filter now can use in {% if %} tag,optimize parser