Check the target exists before using it