I think you can only catch \Exception here and set $valid as false.