commit 7 : isEmpty function working with tests