I've got a OOP script. One of my function is getObject($id)
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
This doesn't work.