Check before writing routes.php in GenerateModuleCommand