jQuery: set button visible if exist label.text-Collection of common programming errors

Something like this would probably be a starting point

$('label').each(function() {
   if ($(this).text() == '') {
      $(this).siblings('button').hide();
   }
});

How does the label related to the button ? im using .siblings() here so it would hide any buttons within the same parent