No need to have this else branch, just return early `if (from === to || fromPosition === toPosition)`.