Use hasattr for CA dispatchID check