public function get($key) { try { return $this->container->get($key); } catch (AccessException $e) { throw new AccessException('"' . $key . '" doesn\'t exist in Document.'); } }
function valid() { return $this->jsonApiDocument->get('data')->has($this->position); }