private function getPreparedNamespaces()
{
// Create a package array copy
$namespaces = $this->namespaces;
// Remove default package if empty
if ($this->defaultPackage->getTypes()->count() === 0 && $this->defaultPackage->getFunctions()->count() === 0) {
unset($namespaces[self::DEFAULT_NAMESPACE]);
}
return $namespaces;
}