Not sure if `modal: settings.modal || "false"` would work here, or if it is being to clever.
PS: You might like https://github.com/rwaldron/idiomatic.js/ as it's got some interesting tricks/tips