code: protected function getResponseStatus($response, $fieldKey)
      {
          $status = null; // default because if we cant get it, its because its invalid
          if (!empty($response) && !empty($fieldKey)) {
              if (isset($response[$fieldKey]['status']) && !empty($response[$fieldKey]['status'])) {
                  $status = $response[$fieldKey]['status'] == 'valid' ? 1 : 0;
              }
          }
  
          return $status;
      }
docs: @param $response
  @param $fieldKey
  
  @return int|null