figured out how to check if variable exists before crashing everything