revert change to manager.js, testing for undefined is not needed