DRY app index functions
short cut else-branch
short cut else-branch
short cut else-branch
bring branches into conformance with each other
pass fallback as arg
parameterise use of count
merge main index function into general case
Merge pull request #440 from mk270/tva/app-index

Tva/index - tidy view/applications for index functions