php – Facing issue while saving in options = Warning: Undefined array key

enter image description here
The above line is an excerpt from the full code, and is generating an error →

Warning: Undefined array key "pgnyt_results" in G:.....wordpressonewp-contentpluginspgnyt-articlespgnyt-articles.php on line 58

Troubleshooting steps:

All the var_dumps are working absolutely fine →

enter image description here

Identified issue: This is option is not saving in the database, but I couldn’t find why?

$pgnyt_results = $options('pgnyt_results');

enter image description here

This is the full code→

$plugin_url = WP_PLUGIN_URL . '/pgnyt-articles';
$options = array();

function pgnyt_articles_menu() {
  add_options_page(
    'Patrick Udemy NY Times Plugin',
    'NY Times Articles',
    'manage_options',
    'pgnyt-articles',
    'pgnyt_articles_options_page'
  );
}

add_action('admin_menu', 'pgnyt_articles_menu');


function pgnyt_articles_options_page() {
  if (!current_user_can('manage_options' )){
    wp_die('You do not have enough permission to view this page');
  }
  global $plugin_url;
  global $options;

  if (isset($_POST('pgnyt_form_submitted'))) {
    $hidden_field = esc_html($_POST('pgnyt_form_submitted'));
    if($hidden_field == 'Y') {

      $pgnyt_search = esc_html($_POST('pgnyt_search') );
      $pgnyt_apikey = esc_html($_POST('pgnyt_apikey') );
      $pgnyt_results = pgnyt_articles_get_results($pgnyt_search, $pgnyt_apikey);   

      $options('pgnyt_search') = $pgnyt_search;
      $options('pgnyt_apikey') = $pgnyt_apikey;
      $options('last_updated') = time();
      $option('pgnyt_results') = $pgnyt_results;

      update_option('pgnyt_articles', $options);
    }

  }

  $options = get_option('pgnyt_articles');
  if ($options != '') {
    $pgnyt_search = $options('pgnyt_search');
    $pgnyt_apikey = $options('pgnyt_apikey');
    $pgnyt_results = $options('pgnyt_results');
  }
  require('inc/options-page-wrapper.php');
}


function pgnyt_articles_get_results($pgnyt_search, $pgnyt_apikey) {
  $json_feed_url = 'http://api.nytimes.com/svc/search/v2/articlesearch.json?q=' . $pgnyt_search . '&api-key=' . $pgnyt_apikey;
  // echo $json_feed_url;
  $json_feed = wp_remote_get($json_feed_url);
  // var_dump($json_feed);
  $pgnyt_results = json_decode($json_feed('body'));
  // var_dump($pgnyt_results);
  return $pgnyt_results;
}

What should I do next to identify the issue, and what should be the next troubleshooting step.