protected function checkMigrationsPath(array $config)
    {
        // Check if $config['migration_path'] is already defined
        $migrationPath = isset($config['migration_path']) ? $config['migration_path'] : false;

        $migrationPath = str_replace('FCPATH', '', $migrationPath);
        // Check if $config['migration_path'] directory is not available yet, create new one
        if ($migrationPath !== false && !is_dir($migrationPath)) {
            mkdir($migrationPath, 0755, true);
        }

        return $migrationPath;
    }