Much as I prefer `!isEmpty` over `size() > 0`, the latter is used everywhere else in this method, so switch to that?