Fix plugin url
Fix various array checks
Fix array reference
Not sure where else this would have been defined.  Perhaps it was picking up a global somewhere else?
Fix null check
version
merged, fixed conflict between pull requests