IndexOf on an array works fine