I agree - it can be written shorter, but the shorter version combines two expressions which correspond to tow independent DOMs - in my view it is a bit unnatural.
Plus, it will be easier to remove the last expression, once the site transition to the new layout is fully completed.