added isEmpty and nonEmpty operators