Check for empty var before trying to render it.