InContainer returns an array. If you don't know what an array is, then you should hit up the manual and other resources.

The result of the membership check is contained in the first element of the array, which is Index 0, hence the [0].