Looks like we're missing a unit test.
I updated it to include an else bracket that should have always been here. the array fill in the else is for the write context only.