protected static function mapCustomInstallPaths(array $paths, $name) { foreach ($paths as $path => $names) { if (in_array($name, $names)) { return $path; } } return false; }