Fix notices when array key does not exists
Merge pull request #13 from GCth/master

Fix notices when array key does not exists