Isn't this `$value === false || $value === ''` ?