avoid notices for not existing array keys
Merge pull request #52 from mimmi20/issue-51

Fixes #51
Bump version constant to 2.0.4 ready for release
Updated test to reflect new version
update from master