[11] Minor example code improvement - isEmpty