The relationship between community type and community resilience