maybe `getAsMap().isEmtpy()` ?