these early mosques served an equally important function , a function that mosques continue to serve to this day : as a place where muslims foster their collective identity through prayer and attend to common concerns .