title: Wordnik "Trying to get property of non-object" Error when trying getDefinitions
body: <p>I'm trying to use the Wordnik PHP API and I'm having some trouble. I tried to use the getDefinitions method but it returns an error: <code>Notice: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 18</code>.</p>
  
  <p>Here is the following code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form method="post"&gt;
              &lt;input type="text" placeholder="First Word" name="word1"&gt;
              &lt;input type="submit" placeholder="Compare"&gt;
          &lt;/form&gt;
          &lt;?php
              require('./wordnik/Swagger.php');
              $APIKey = '342eac9900e703079b0050d5f7008eab962195189e75bfbcb';
              $client = new APIClient($APIKey, 'http://api.wordnik.com/v4');
  
              $word1 = $_POST['word1'];
              $wordApi = new WordApi($client);
              $word1 = $wordApi-&gt;getDefinitions($word1, null, null);
              print $word1-&gt;text;
          ?&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>