added check for response presence
check for response not null