check if API data is actually returned