code: public function canCreate(ContainerInterface $container, $requestedName, array $options=null)
      {
          $class = $this->getEntityClassName($requestedName);
  
          return class_exists($class, true);
      }
docs: Can the factory create an instance for the given $requestedName service
  
  @param ContainerInterface    $container
  @param string                $requestedName
  @param array|null            $options
  @return bool