private function checkKeys($input) { if (!$this->hasValidStructure($input)) { $params = ['keys' => $this->getKeys()]; $exception = $this->reportError($input, $params); throw $exception; } }