Yes, it was surprise for me too. Here (wasEmpty || isEmpty) is false