make sure to check for objects within objects.cache else throw an error