Don't try and look at params.layers when it isn't set