How does one code a block so that it will not display under certain circumstances, like if there is nothing to put in the block or conditionally, based on something like a user's profile attribute. I've tried putting a test at the top of a service block method but I still end up with the block displayed.
Thanks.