Prefer isEmpty() to size()