modules/account.js
function (account) {
	// check if DB is initialized
	if (typeof l_accounts === 'undefined') {
		LOG.error('DB module is not loaded, please enable DB module', l_name);
		return false;
	}

	if (l_accounts.hasOwnProperty(account) === false) {
		LOG.error('[' + account + '] not found', l_name);
		return false;
	}

	return true;
}
function (account) {
	// check if DB is initialized
	if (typeof l_accounts === 'undefined') {
		LOG.error('DB module is not loaded, please enable DB module', l_name);
		return false;
	}

	if (l_accounts.hasOwnProperty(account) === false) {
		LOG.error('[' + account + '] not found', l_name);
		return false;
	}

	return true;
}
function ( account ) { // check if DB is initialized if ( typeof l_accounts === 'undefined' ) { LOG . error ( 'DB module is not loaded, please enable DB module' , l_name ) ; return false ; } if ( l_accounts . hasOwnProperty ( account ) === false ) { LOG . error ( '[' + account + '] not found' , l_name ) ; return false ; } return true ; }
helper functions  check if an account is valid
helper functions check if an account is valid