Replace old style "defined?" checks with new style @var checks.