better handle edge cases
Assign repeated API call to variable
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
Merge pull request #19 from deltamualpha/master

Better handle cases where foreach() and in_array() would be called over null arrays
version
merged, fixed conflict between pull requests
forgot to version
bug fix as a result of merge
upped version
Merge remote-tracking branch 'upstream/master'