added a check for an empty result when returning a Restaurant object and fixed a few errors in other classes