private function addHelpersDir(Config $config, callable $recipe = null)
    {
        if (false === $this->runRecipe($config, $recipe)) {
            $directory = realpath(
                dirname($config->getBaseDir()).DIRECTORY_SEPARATOR
                .'Templates'.DIRECTORY_SEPARATOR.'helpers'
            );

            if (false !== $directory) {
                $this->application->getRenderer()->addHelperDir($directory);
            }
        }
    }