valid method

bool valid()

Implementation

bool valid() {
  if (segments.isEmpty) {
    return false;
  }
  for (AitSegment segment in segments) {
    if (!segment.broken) {
      return true;
    }
  }
  return false;
}