fix callable syntax
possibly improve performance

• by calling hasChildrenImpl first and prepareChildren() only if not false