why not 

enableParentChildIndex = this.settings.getParentIdPath() != null

?