I've got a OOP script. One of my function is getObject($id)
So
$Car->getCar(34);
It goes to the database and get car ID 34 and populates the properties from this.
All works well.
However, if ID 34 doesn't exist I get errors. How should I manage this in the get car function or back on my main page
if (isset($Car->getCar(34))){
}
This doesn't work.