original_string: private function queryPayload($payload, $path = null)
      {
          if(is_null($path)) return $payload;
  
          if(array_key_exists($path, $payload)) {
              return $payload[$path];
          }
  
          $dotData = Arr::dot($payload);
          if(array_key_exists($path, $dotData)) {
              return $dotData[$path];
          }
  
          return null;
      }
code: private function queryPayload($payload, $path = null)
      {
          if(is_null($path)) return $payload;
  
          if(array_key_exists($path, $payload)) {
              return $payload[$path];
          }
  
          $dotData = Arr::dot($payload);
          if(array_key_exists($path, $dotData)) {
              return $dotData[$path];
          }
  
          return null;
      }
code_tokens: private function queryPayload ( $ payload , $ path = null ) { if ( is_null ( $ path ) ) return $ payload ; if ( array_key_exists ( $ path , $ payload ) ) { return $ payload [ $ path ] ; } $ dotData = Arr :: dot ( $ payload ) ; if ( array_key_exists ( $ path , $ dotData ) ) { return $ dotData [ $ path ] ; } return null ; }
docstring: Query the payload using dot syntax to find specific data
  
  @param array       $payload
  @param string|null $path
  
  @return mixed
docstring_tokens: Query the payload using dot syntax to find specific data