Set NULL straight away instead of checking later.