update comment of method isEmpty