Don't assume layers field exists