Return false if collection is empty
Merge pull request #1725 from kayue/fix/issue-1714

Return false if collection is empty.