added hooks to prevent the block from being printed to the page when no content is present