added check for response emptyness