Prefer empty() over size()
Merge pull request #2975 from Fice/empty

Prefer empty() over size()