Adds __nonzero__ method to avoid expensive __len__ call on truthiness check