router.js: using undefined instead of false