Use foo = null instead of delete foo where appropriate