Improve Insert condition check.