- fixed the problem with isEmpty and isNotEmpty functions