``return !empty($metadata);``

Or even better as it is more explicit about what it manipulates: ``return null !== $this->factory->getClassMetadata($className);``