Use similar type check for is-empty-object benchmark