Use size() > 0 for glossmap name