code: protected function isArrayEmpty($arrArray)
      {
          // First off check for simple types.
          if (empty($arrArray)) {
              return true;
          }
          // Next check for a value array.
          if (is_array($arrArray) && array_key_exists('value', $arrArray)) {
              return $this->isArrayEmpty($arrArray['value']);
          }
          // Now check sub arrays.
          if (is_array($arrArray)) {
              foreach ($arrArray as $value) {
                  if (is_array($value)) {
                      return $this->isArrayEmpty($value);
                  } elseif (!empty($value)) {
                      return false;
                  }
              }
          }
  
          return false;
      }
docs: Run through each level of an array and check if we have at least one empty value.
  
  @param array $arrArray The array to check.
  
  @return boolean True => empty, False => some values found.