title: react checking elements in multidimensional array without breaking - better way to do it?
body: <p>I am using multiple check for a heavy multidimensional array so that it doesn't break due to a value not present in the middle. This is in react js. Basically, my goal is to check the end value</p>
  <pre><code>this.state.formData ?
    this.state.formData[a] ?
      this.state.formData[a]['all'] ?
        this.state.formData[a]['all'][data.id] ?
          this.state.formData[a]['all'][data.id]['attributes'] ?
            this.state.formData[a]['all'][data.id]['attributes'][data.lang] ?
              this.state.formData[a]['all'][data.id]['attributes'][data.lang][data.fieldType] ?
                this.state.formData[a]['all'][data.id]['all'][data.lang][data.fieldType][data.label]
                  : false : false : false : false : false : false : false;
  </code></pre>