It is highly suspicious when a value is saved for a key or index and then unconditionally overwritten. Such replacements are likely errors.
Noncompliant Code Example
$someArray[1] = "someValue";
$someArray[1] = "someOtherValue"; // The intention here was probably to write to another array key.