public function checkForUpdates(array $modules) { $updates = []; foreach ($modules as $mid => $module) { if ($a = $this->getNewMigrations($mid)) { $updates[$mid] = $a; } } return $updates; }