One solution would be to define unique default values for each control assigned to an input connector. Pick something that is unlikely to occur under normal use (e.g. NaN for DBL, empty array for arrays, "--unwired--" for strings, etc.).
Now you can just check for the special value, which then would indicate that the input wasn't wired.