City personnel went to see whether there was a lot of snow in the entrance not removed and to see if there could be danger from snow falling from the roof.
It's equivalent to "if / whether" in English. It shows that the preceding clause/phrase is a quotation of a question, thus, 雪がたくさん残っていないか means that they were checking "Isn't there a lot of snow remaining?"