/**
  * Set the data in the options.
  *
  * @param {string} $data The data to set for the field.
  *
  * @return bool Returns true or false for successful storing the data.
  */
 public function set_data($data)
 {
     $value = $data === 'yes';
     // Set multiple authors option.
     $result_multiple_authors = WPSEO_Options::save_option('wpseo', 'has_multiple_authors', $value);
     /*
      * Set disable author archives option. When multiple authors is set to true,
      * the disable author option has to be false. Because of this the $value is inversed.
      */
     $result_author_archives = WPSEO_Options::save_option('wpseo_titles', 'disable-author', !$value);
     return $result_multiple_authors === true && $result_author_archives === true;
 }