protected function getValueOrNull($key) { try { return $this->getValue($key); } catch (KeyDoesNotExistException $e) { return null; } }