Can you condense this into one line: `anchor.href = url if anchor?`