When retrieving all the locations, exclude the empty ones