check response == nil before dereferencing Body