Printing unit only if not null