Code cleanup and updated the result checking to handle arrays
Code cleanup and updated the result checking to handle arrays

The check functions will return arrays if there are multiple matches,
updated the algorithm to do a logical or on the array elements to look
for one that is passing

austinsand/doc-roba,austinsand/doc-roba,austinsand/doc-roba