shorter detection of single parameter call in bootstrap.js