chore (model): add convenience function