was throwing a warning when 0 was not a valid offset
Merge pull request #230 from alleyinteractive/fix-warning

check isset before is_array