Added isEmpty() and length()