Nit: Could we just do boolean coercion and not worry about the overhead here (in terms of function call and code length)?

So it'd just be: 

`opts.staticPages = !!opts.staticPages`