Javascript Check If Array Index Exists Crossword