Adding checking if response is null