You've made a nice block. But it still comes popping up even though it doesn't return any results! Luckily it is just a matter of settings. Here i'll show you how.
I was writing an extremely simple custom module (for a D6 site) to make use of hook_block. Every time I enabled the module the blocks no longer displayed on the pages.