Fixed is_empty method
Merge pull request #165 from matiangul/master

Fix is_empty method