function getLevelFromObject(oObject, bIsNode) {
		if (oObject) {
			return bIsNode ? oObject.level + 1 : oObject.getProperty("@$ui5.node.level");
		}
	}
Retrieves the level property from a given object.
@param {object|sap.ui.model.Context} oObject object to retrieve the level from, either
a node or a binding context
@param {boolean} bIsNode indicates whether the given object is a node or a binding context
@returns {undefined|int} If the object does not exist, returns undefined otherwise the level