title: array_key_exists() expects parameter 2 to be array string given
body: <p>the wordpress site is giving this error in place of where the logo may be;</p>
  
  <blockquote>
    <p>Warning: array_key_exists() expects parameter 2 to be array, string given in themes....\edgt.functions.php on line 337.</p>
  </blockquote>
  
  <p>and the associated code</p>
  
  <pre><code>        //is subarray of meta array keys set?
          if(is_array($keys) &amp;&amp; count($keys)) {
              $sub_array = array();   
  
              //for each defined key
              foreach($keys as $key) {
                  //check if that key exists in all meta array
                  if  (array_key_exists($key, $meta_data)) {
                      //assign key from meta array for current key to meta subarray
                      $sub_array[$key] = $meta_data[$key];
                  }
              }
  
              //we want meta array to be subarray because that is what used whants to get
              $meta_data = $sub_array;
          }
  </code></pre>
  
  <p>Other information: using XAMPP to develop the website locally, and using the Hudson theme with the wordpress.</p>
  
  <p>Thanks in advance</p>