check that stopId property exists before working with it