Checking type of data response