This intention replaces size 0 check with 'isEmpty()'