Making the assertions before setting values