Check if key is present and return an error if not
Merge pull request #33 from PreetamJinka/issues/32

Check if key is present and return an error if not