Original: In smaller communities, an imam could also be the community leader.
Simplified: In smaller communities an imam could be the community leader based on the community setting.