Hide any element on a dynamic page when field is empty

Thank you! Am I understanding correctly that I would have to add that if-else section of code for each element on the page?