public function isNested($objectKey) { $definition = $this->getDefinition($objectKey); if (!$definition) { throw new ObjectNotFoundException(sprintf('Object %s not found', $objectKey)); } return $definition->isNested(); }