added an earlier check for tiles being available in a tile source to avoid unnecessary loads