isInvalid method

bool isInvalid()

Implementation

bool isInvalid() {
  return isEmpty() && !shouldBeEmpty;
}