From http://wp-snippets.com/check-if-sidebar-has-widgets/