if (names[i]) will always be true.