public function checkCanCreateModuleConfig($module, $environment = '', $allowOverwriteEmpty = true)
    {
        $targetFile = $this->getModuleFile($module, $environment);
        if (file_exists($targetFile)) {
            $content = Yaml::parse(file_get_contents($targetFile));
            if (null !== $content || !$allowOverwriteEmpty) {
                // there is something inside this file that parses as yaml
                return false;
            }
        }

        return true;
    }