more reliable footer_content helper

- added specs
- empty content handling