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