Prevent undefined index error rather than masking the actual error
Merge pull request #152 from rchavik/check-value-existence

Prevent undefined index error rather than masking the actual error