feat(gen): add hasFilter function

Changes:
- add hasFilter(filter) to generator base, for easier conditionals in templates