title: Is it good to use lots of and condition in if statement?
body: <p>I've a code something like this, i just want to know is it good habit to use lots of 'and' 'or' in a single if statement</p>
  
  <pre><code>if (array_key_exists(self::SUB_FORM_CONTACT, $data) &amp;&amp;
              array_key_exists('company', $data[self::SUB_FORM_CONTACT]) &amp;&amp;
              ((array_key_exists('salesRegion', $data[self::SUB_FORM_CONTACT]['company']) &amp;&amp; !empty($data[self::SUB_FORM_CONTACT]['company']['salesRegion'])) ||
                  (array_key_exists('serviceRegion', $data[self::SUB_FORM_CONTACT]['company']) &amp;&amp; !empty($data[self::SUB_FORM_CONTACT]['company'][''])))
          ) {
  
          }
  </code></pre>
  
  <p>Or is there any better way of doing this?</p>