private function getField($fieldName) { if (array_key_exists($fieldName, $this->snsMessage)) { return $this->snsMessage[$fieldName]; } else { return null; } }