Checking in array serialization method