changed undefined check to arguments.length in window.Bugle