This check feels a little brittle. Is the prependTo not idempotent?