Yeah I agree, it seems you could just do a return in the previous if block and remove the duplicate check, unless you want both trace messages?