Issue 51

I add a check to avoid the notices for not existing array keys. This should solve Issue #51.

This should be merged into the master.