Check if var exists before shoving it into places