Checking for null value before storing the first write.