Use falsy values to test old input

This would have caught [this bug](https://github.com/laravel/framework/commit/e134a92136add9b313fdfcf4823de12c0e6c8d14).