With invalid params section, modify source/domain link detection to use is_a? String