fix if _cache has {} object

bad code