/** * Determines whether the current element is empty * * @return <tt>true</tt> if the current element has no content or children, <tt>false</tt> otherwise */ public boolean isCurrentObjectEmpty() { if (nesting.isEmpty()) { return true; } return nesting.get(0).isEmpty(); }