standardize breadcrumb render func output #3848
remove unneeded spaces_get_space() #3848
refactor: group similar conditions together #3848
refactor: flatten logic to return early #3848
Merge pull request #4037 from openscholar/3848-breadcrumbs

Refactor show breadcrumb logic (no changes to functionality) #3848