have you tried show_demote_button.nil? here?