code: function(aArray, oObject) {
  			var iObjectIndex = -1;
  			aArray.some(function(oArrayObject, iIndex) {
  				var aKeysArray, aKeysObject;
  				if (!oArrayObject) {
  					aKeysArray = [];
  				} else {
  					aKeysArray = Object.keys(oArrayObject);
  				}
  
  				if (!oObject) {
  					aKeysObject = [];
  				} else {
  					aKeysObject = Object.keys(oObject);
  				}
  				var bSameNumberOfAttributes = aKeysArray.length === aKeysObject.length;
  				var bContains = bSameNumberOfAttributes && !aKeysArray.some(function(sKey) {
  					return oArrayObject[sKey] !== oObject[sKey];
  				});
  
  				if (bContains) {
  					iObjectIndex = iIndex;
  				}
  
  				return bContains;
  			});
  			return iObjectIndex;
  		}
docs: Checks if an object is in an array or not and returns the index or -1
  
  @param {object[]} aArray Array of objects
  @param {object} oObject object that should be part of the array
  @returns {int} Returns the index of the object in the array, -1 if it is not in the array
  @public