The additional `is_object` check is superfluous.