isEmtpy() instead of size()==0