I do not know exactly what do you want to achieve here, but it seems to be working in the same way as the previous version. I feel that you have added only `false !== $value` which cannot be used because of `false === $value` in the beginning of the condition. 

Please add some test, you will see that's there is a problem with this change.