`!common.isEmpty()`? And have `generateInstanceNames` first as I guess it'll be cheaper to check..?