dont print weight css if value doesnt exist