Only log memory if value exists