Update Validator.php

Change cast from !! to (bool)