commit 11 : isEmpty function working with tests