@Ocramius I added some unit test. I think if the array value is null the condition falls back to the "else" on line 268