code: public function getOutgoingContext($name)
      {
          foreach ($this->outgoingContexts as $outgoingContext) {
              if ($outgoingContext->getName() == $name) {
                  return $outgoingContext;
              }
          }
      }
docs: Get a Dialogflow outgoing context.
  Reference: https://dialogflow.com/docs/contexts.
  
  @param string $name context name
  
  @return null|Context