Check for empty object

Added one more check to not change the behavior when the request is empty.