check if indicator exists before looking at its value to prevent type error