function createFriendsArray(aFriends, aSubSelects) {
		var aArray = [],
			iFriendIndex;

		if (aFriends) {
			aFriends.forEach(function (sFriend) {
				iFriendIndex = findUserIndex(sFriend);
				aArray.push(getUserByIndex(iFriendIndex, aSubSelects));
			});

			aArray = aArray.filter(function (element) {
				return element != null;
			});
		}

		return aArray;
	}
creates array of friends for a given user
@param  {string[]} aFriends array containing the usernames of the friends
@param  {string[]} aSubSelects array containing the select parameters for the expand on
    friends
@returns {Object[]} array containing the friends as objects