Add a check in _get_all_XXX for no data