True if only a single empty `a:p` element is present.
346916
def is_empty(self):
        """"""
        ps = self.p_lst
        if len(ps) > 1:
            return False

        if not ps:
            raise InvalidXmlError('p:txBody must have at least one a:p')

        if ps[0].text != '':
            return False
        return True
115665
function isNotEmpty() {
        if (_valueType === 'string') {
            _valid = _valid && _value !== '';
        } else if (_valueType instanceof Array) {
            _valid = _valid && _value.length > 0;
        }
        return _guard;
    }
804546
def is_empty(self):
        
        if(((self.channels == []) and (not self.shape == (0, 0))) or
           ((not self.channels == []) and (self.shape == (0, 0)))):
            raise RuntimeError("Channels-shape mismatch.")
        return self.channels == [] and self.shape == (0, 0)
350938
public boolean isNullOrEmpty(String attributeName) {
        String attr = attributes.get(attributeName);
        if (attr == null || attr.isEmpty()) {
            return true;
        }
        return false;
    }
141635
function isEmpty() {
        if (_valueType === 'string') {
            _valid = _valid && _value === '';
        } else if (_valueType instanceof Array) {
            _valid = _valid && _value.length === 0;
        }
        return _guard;
    }
903748
function(v) {
		return _.isNull(v) || (_.isString(v) && _.isEmpty(v));
	}
1241727
def is_empty(self):
        
        while self.pq:
            if self.pq[0][1] != self.INVALID:
                return False
            else:
                _, _, element = heapq.heappop(self.pq)
                if element in self.element_finder:
                    del self.element_finder[element]
        return True
181807
function emptyp(obj) { var key
        for (key in obj)
            if (hasp(obj, key)) return false

        return true
    }
785962
def isEmpty(self):
        
        if self.isRectangular:
            return False
        eps = 1e-5
        ul = Point()
        ur = (self.ur - self.ul).abs_unit
        lr = (self.lr - self.ul).abs_unit
        ll = (self.ll - self.ul).abs_unit
        if max(ur.y, lr.y, ll.y) - min(ur.y, lr.y, ll.y) < eps:
            return True
        return False
1054813
private boolean nob(String str, Pattern p) {
		return str==null || !p.matcher(str).matches(); 
	}
317477
def path_is_empty(p: tcod.path.AStar) -> bool:
    
    return bool(lib.TCOD_path_is_empty(p._path_c))
210792
public static boolean isEmpty(final String str, final boolean trim) {
	if (!trim) return isEmpty(str);
	return str == null || str.trim().length() == 0;
    }
931774
def is_empty(self):
        
        return (
            self._lower > self._upper or
            (self._lower == self._upper and (self._left == OPEN or self._right == OPEN))
        )
466637
static boolean isEmptyBlock(Node block) {
    if (!block.isBlock()) {
      return false;
    }

    for (Node n = block.getFirstChild(); n != null; n = n.getNext()) {
      if (!n.isEmpty()) {
        return false;
      }
    }
    return true;
  }
938919
private static boolean isSimpleMode(Element element){
        // simple mode is triggered through the marker css class 'o-simple-drag'
        return org.opencms.gwt.client.util.CmsDomUtil.getAncestor(element, "o-simple-drag")!=null;
    }
443417
function isEmpty(x) {
    if (!x) {
      // if '', 0, `null`, `undefined`, `NaN`, or `false` then is empty
      return true;
    }

    if (isNumber(x) || isFunction(x)) {
      return false;
    }

    if (isArray(x)) {
      // takes care of 'instances of Array'
      return !x.length;
    }

    if (x.size !== undefined && !(0, _object.instanceOf)(Function, x.size)) {
      return !x.size;
    }

    if (isObject(x)) {
      return !(0, _object.keys)(x).length;
    }

    return false;
  }
616105
def p_namedblock_empty(self, p):
        ''
        p[0] = Block((), p[3], lineno=p.lineno(1))
        p.set_lineno(0, p.lineno(1))