title: How to check if an object exist in POSTMAN?
body: <p>I want to know how can I test if an object exists.
  For example, my API return these things :</p>
  <pre><code>&quot;data&quot;: [
      {
        &quot;id&quot;: 1,
        &quot;name&quot;: &quot;Abu Dhabi&quot;,
        &quot;locale&quot;: &quot;AE&quot;,
        &quot;rentWayCountryId&quot;: 242,
        &quot;stations&quot;: [
          {
            &quot;id&quot;: 2,
            &quot;rentWayName&quot;: &quot;ABU DHABI AIRPORT&quot;,
            &quot;rentWayStationId&quot;: &quot;IAEAUH1&quot;,
            &quot;bindExtrasToStationToExtraCategory&quot;: []
          }
        ]
      },
  </code></pre>
  <p>I want to check that data.id exists.</p>
  <p>I used the test options in postman and i did this :</p>
  <pre><code>var jsonData = JSON.parse(responseBody);
  tests[&quot;Name value OK&quot;] = jsonData.data.id === &quot;1&quot;;
  </code></pre>
  <p>Could you tell me which condition should I use to verify only if the data exist?</p>
  <p>Thank you very much !!</p>