Adding isset checks and fixed the $output in buildCheckFields
Merge pull request #1 from jgraup/master

Adding isset checks and fixed the $output in buildCheckFields