Change the logic of has Insert record checking.