handle the cases where there are no remote resources and the API returns nil