Swapped logic for checking read/write connection