in_array could not compare strings with mixed upper and lower case. Now all the array indices are converted to lowercase first before comparison is done.