2nd parameter of in_array takes an array but is being passed a bool from array_walk.