Extract RX sanity checker into separate function