Add guard for response objects