RF: Reorder the function a bit to short-circuit. Use broadcasting.