1) Yes, it is a PHP array code, just enter it to the Code field of your service block.
2) Yes, you need to create similar blocks for every module or edit the currents. Except the Groups-based apps because they have the Categories block with already enabled "show empty categories" parameter.
Ok Thank you for the guidance.