I'm designing a new theme for word press 1.5. With this new theme every category (blogroll, pages, etc) in the sidebar is shown in a separate block. The problem is that if there's no pages in the pages category the block 'pages' is still shown on the sidebar and it looks not very good. I would like to fix it so if there're some pages they are shown (with the block) and if there's no pages the block is not shown. Can anybody help me with it?