Adding a simple error check to the request. This is to handle empty requests that seem to happen