Remove unnecessary empty()
Merge pull request #1106 from elinw/unneededempty

Remove unnecessary empty()