Minor improvement in array comparison